Color #312552
A muted dark blue.
Conversions
#312552
rgb(49, 37, 82)
hsl(256, 37.8%, 23.3%)
hsv(256, 54.9%, 32.2%)
cmyk(40.2%, 54.9%, 0%, 67.8%)
lab(18.3, 17.72, -25.66)
lch(18.3, 31.18, 304.63)
oklch(30.3%, 0.0791, 293.39)
hwb(256, 14.5%, 67.8%)
Harmony colors
Accessibility
White text reads better on this background (13.84:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2c4a · ΔE 5.8
Deuteranopia
#2d2e48 · ΔE 7.4
Tritanopia
#304341 · ΔE 24.5
Achromatopsia
#2d2d2d · ΔE 19.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312552;
bg-[#312552]
Related colors
Frequently asked questions
#312552 (#312552) is rgb(49, 37, 82) in RGB.
No, #312552 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 #312552, or check how it holds up for accessibility.