Color #312a51
A muted dark blue.
Conversions
#312a51
rgb(49, 42, 81)
hsl(250.8, 31.7%, 24.1%)
hsv(250.8, 48.1%, 31.8%)
cmyk(39.5%, 48.1%, 0%, 68.2%)
lab(19.65, 13.93, -22.84)
lch(19.65, 26.75, 301.38)
oklch(31.3%, 0.0685, 290.08)
hwb(250.8, 16.5%, 68.2%)
Harmony colors
Accessibility
White text reads better on this background (13.29:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2e2e4a · ΔE 4.4
Deuteranopia
#2f2f48 · ΔE 5.6
Tritanopia
#314342 · ΔE 22.9
Achromatopsia
#303030 · ΔE 18.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312a51;
bg-[#312a51]
Related colors
Frequently asked questions
#312a51 (#312a51) is rgb(49, 42, 81) in RGB.
No, #312a51 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 #312a51, or check how it holds up for accessibility.