Color #1f2238
A muted very dark blue.
Conversions
#1f2238
rgb(31, 34, 56)
hsl(232.8, 28.7%, 17.1%)
hsv(232.8, 44.6%, 22%)
cmyk(44.6%, 39.3%, 0%, 78%)
lab(13.95, 5.43, -14.71)
lch(13.95, 15.68, 290.26)
oklch(26%, 0.0415, 277.19)
hwb(232.8, 12.2%, 78%)
Harmony colors
Accessibility
White text reads better on this background (15.62:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#202034 · ΔE 1.5
Deuteranopia
#202032 · ΔE 2
Tritanopia
#1f302f · ΔE 17.3
Achromatopsia
#232323 · ΔE 12.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f2238;
bg-[#1f2238]
Related colors
Frequently asked questions
#1f2238 (#1f2238) is rgb(31, 34, 56) in RGB.
No, #1f2238 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 #1f2238, or check how it holds up for accessibility.