Color #1f3d71
A moderately saturated dark blue.
Conversions
#1f3d71
rgb(31, 61, 113)
hsl(218, 56.9%, 28.2%)
hsv(218, 72.6%, 44.3%)
cmyk(72.6%, 46%, 0%, 55.7%)
lab(26.22, 8, -33.35)
lch(26.22, 34.3, 283.49)
oklch(36.7%, 0.0967, 260.6)
hwb(218, 12.2%, 55.7%)
Harmony colors
Accessibility
White text reads better on this background (10.69:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2f2f67 · ΔE 7.4
Deuteranopia
#2d2a65 · ΔE 8.6
Tritanopia
#215f5d · ΔE 25.5
Achromatopsia
#3e3e3e · ΔE 19.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f3d71;
bg-[#1f3d71]
Related colors
Frequently asked questions
#1f3d71 (#1f3d71) is rgb(31, 61, 113) in RGB.
No, #1f3d71 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 #1f3d71, or check how it holds up for accessibility.