Color #1f1837
A muted very dark blue.
Conversions
#1f1837
rgb(31, 24, 55)
hsl(253.5, 39.2%, 15.5%)
hsv(253.5, 56.4%, 21.6%)
cmyk(43.6%, 56.4%, 0%, 78.4%)
lab(10.71, 12.52, -19.12)
lch(10.71, 22.85, 303.22)
oklch(23.5%, 0.0581, 291.71)
hwb(253.5, 9.4%, 78.4%)
Harmony colors
Accessibility
White text reads better on this background (16.88:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1c1c31 · ΔE 5.2
Deuteranopia
#1d1d30 · ΔE 6.1
Tritanopia
#1f2c2b · ΔE 21.3
Achromatopsia
#1d1d1d · ΔE 16.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f1837;
bg-[#1f1837]
Related colors
Frequently asked questions
#1f1837 (#1f1837) is rgb(31, 24, 55) in RGB.
No, #1f1837 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 #1f1837, or check how it holds up for accessibility.