Color #1f2837
A muted very dark blue.
Conversions
#1f2837
rgb(31, 40, 55)
hsl(217.5, 27.9%, 16.9%)
hsv(217.5, 43.6%, 21.6%)
cmyk(43.6%, 27.3%, 0%, 78.4%)
lab(15.93, 0.73, -10.94)
lch(15.93, 10.96, 273.82)
oklch(27.5%, 0.0307, 260.45)
hwb(217.5, 12.2%, 78.4%)
Harmony colors
Accessibility
White text reads better on this background (14.82:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#232334 · ΔE 5.4
Deuteranopia
#232233 · ΔE 6
Tritanopia
#203131 · ΔE 11.6
Achromatopsia
#282828 · ΔE 8.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f2837;
bg-[#1f2837]
Related colors
Frequently asked questions
#1f2837 (#1f2837) is rgb(31, 40, 55) in RGB.
No, #1f2837 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #1f2837, or check how it holds up for accessibility.