Color #31395e
A muted dark blue.
Conversions
#31395e
rgb(49, 57, 94)
hsl(229.3, 31.5%, 28%)
hsv(229.3, 47.9%, 36.9%)
cmyk(47.9%, 39.4%, 0%, 63.1%)
lab(24.91, 7.82, -23.13)
lch(24.91, 24.42, 288.68)
oklch(35.6%, 0.0652, 273.43)
hwb(229.3, 19.2%, 63.1%)
Harmony colors
Accessibility
White text reads better on this background (11.19:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#353557 · ΔE 3
Deuteranopia
#343455 · ΔE 3.3
Tritanopia
#31504f · ΔE 22.2
Achromatopsia
#3b3b3b · ΔE 16.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31395e;
bg-[#31395e]
Related colors
Frequently asked questions
#31395e (#31395e) is rgb(49, 57, 94) in RGB.
No, #31395e 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 #31395e, or check how it holds up for accessibility.