Color #312459
A moderately saturated dark blue.
Conversions
#312459
rgb(49, 36, 89)
hsl(254.7, 42.4%, 24.5%)
hsv(254.7, 59.6%, 34.9%)
cmyk(44.9%, 59.6%, 0%, 65.1%)
lab(18.52, 20.66, -30)
lch(18.52, 36.43, 304.55)
oklch(30.6%, 0.0916, 291.33)
hwb(254.7, 14.1%, 65.1%)
Harmony colors
Accessibility
White text reads better on this background (13.75:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2c50 · ΔE 5.5
Deuteranopia
#2d2e4e · ΔE 6.8
Tritanopia
#304846 · ΔE 25.5
Achromatopsia
#2d2d2d · ΔE 21.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312459;
bg-[#312459]
Related colors
Frequently asked questions
#312459 (#312459) is rgb(49, 36, 89) in RGB.
No, #312459 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 #312459, or check how it holds up for accessibility.