Color #312259
A moderately saturated dark blue.
Conversions
#312259
rgb(49, 34, 89)
hsl(256.4, 44.7%, 24.1%)
hsv(256.4, 61.8%, 34.9%)
cmyk(44.9%, 61.8%, 0%, 65.1%)
lab(18, 22, -30.84)
lch(18, 37.88, 305.5)
oklch(30.2%, 0.0949, 292.35)
hwb(256.4, 13.3%, 65.1%)
Harmony colors
Accessibility
White text reads better on this background (13.97:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2b2b50 · ΔE 5.8
Deuteranopia
#2c2d4d · ΔE 7.3
Tritanopia
#304745 · ΔE 25.5
Achromatopsia
#2c2c2c · ΔE 21.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312259;
bg-[#312259]
Related colors
Frequently asked questions
#312259 (#312259) is rgb(49, 34, 89) in RGB.
No, #312259 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 #312259, or check how it holds up for accessibility.