Color #1f2a4d
A moderately saturated dark blue.
Conversions
#1f2a4d
rgb(31, 42, 77)
hsl(225.7, 42.6%, 21.2%)
hsv(225.7, 59.7%, 30.2%)
cmyk(59.7%, 45.5%, 0%, 69.8%)
lab(17.84, 7.3, -23.11)
lch(17.84, 24.24, 287.53)
oklch(29.4%, 0.0656, 268.95)
hwb(225.7, 12.2%, 69.8%)
Harmony colors
Accessibility
White text reads better on this background (14.03:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#242446 · ΔE 3.8
Deuteranopia
#242345 · ΔE 4.2
Tritanopia
#20413f · ΔE 22.6
Achromatopsia
#2c2c2c · ΔE 16.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f2a4d;
bg-[#1f2a4d]
Related colors
Frequently asked questions
#1f2a4d (#1f2a4d) is rgb(31, 42, 77) in RGB.
No, #1f2a4d 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 #1f2a4d, or check how it holds up for accessibility.