Color #31497e
A moderately saturated dark blue.
Conversions
#31497e
rgb(49, 73, 126)
hsl(221.3, 44%, 34.3%)
hsv(221.3, 61.1%, 49.4%)
cmyk(61.1%, 42.1%, 0%, 50.6%)
lab(31.63, 8.32, -32.84)
lch(31.63, 33.88, 284.22)
oklch(41.3%, 0.0938, 264.31)
hwb(221.3, 19.2%, 50.6%)
Harmony colors
Accessibility
White text reads better on this background (8.81:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3d3d74 · ΔE 6.5
Deuteranopia
#3b3971 · ΔE 7.5
Tritanopia
#336b69 · ΔE 25.4
Achromatopsia
#4a4a4a · ΔE 19.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31497e;
bg-[#31497e]
Related colors
Frequently asked questions
#31497e (#31497e) is rgb(49, 73, 126) in RGB.
No, #31497e 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 #31497e, or check how it holds up for accessibility.