Color #313f66
A muted dark blue.
Conversions
#313f66
rgb(49, 63, 102)
hsl(224.2, 35.1%, 29.6%)
hsv(224.2, 52%, 40%)
cmyk(52%, 38.2%, 0%, 60%)
lab(27.21, 6.48, -24.69)
lch(27.21, 25.53, 284.71)
oklch(37.5%, 0.0696, 268.03)
hwb(224.2, 19.2%, 60%)
Harmony colors
Accessibility
White text reads better on this background (10.33:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#38385e · ΔE 4.8
Deuteranopia
#37365c · ΔE 5.3
Tritanopia
#325856 · ΔE 22.8
Achromatopsia
#404040 · ΔE 16.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #313f66;
bg-[#313f66]
Related colors
Frequently asked questions
#313f66 (#313f66) is rgb(49, 63, 102) in RGB.
No, #313f66 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 #313f66, or check how it holds up for accessibility.