Color #31235e
A moderately saturated dark blue.
Conversions
#31235e
rgb(49, 35, 94)
hsl(254.2, 45.7%, 25.3%)
hsv(254.2, 62.8%, 36.9%)
cmyk(47.9%, 62.8%, 0%, 63.1%)
lab(18.64, 22.96, -33.13)
lch(18.64, 40.31, 304.72)
oklch(30.8%, 0.1007, 290.16)
hwb(254.2, 13.7%, 63.1%)
Harmony colors
Accessibility
White text reads better on this background (13.7:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2b54 · ΔE 5.2
Deuteranopia
#2c2d52 · ΔE 6.4
Tritanopia
#304b49 · ΔE 26.1
Achromatopsia
#2d2d2d · ΔE 22.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31235e;
bg-[#31235e]
Related colors
Frequently asked questions
#31235e (#31235e) is rgb(49, 35, 94) in RGB.
No, #31235e 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 #31235e, or check how it holds up for accessibility.