Color #313f77
A moderately saturated dark blue.
Conversions
#313f77
rgb(49, 63, 119)
hsl(228, 41.7%, 32.9%)
hsv(228, 58.8%, 46.7%)
cmyk(58.8%, 47.1%, 0%, 53.3%)
lab(28.22, 12.53, -33.9)
lch(28.22, 36.14, 290.29)
oklch(38.6%, 0.0965, 270.77)
hwb(228, 19.2%, 53.3%)
Harmony colors
Accessibility
White text reads better on this background (9.96:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#38386d · ΔE 4
Deuteranopia
#37366a · ΔE 4.6
Tritanopia
#326461 · ΔE 26.8
Achromatopsia
#434343 · ΔE 20.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #313f77;
bg-[#313f77]
Related colors
Frequently asked questions
#313f77 (#313f77) is rgb(49, 63, 119) in RGB.
No, #313f77 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 #313f77, or check how it holds up for accessibility.