Color #31224f
A muted dark purple.
Conversions
#31224f
rgb(49, 34, 79)
hsl(260, 39.8%, 22.2%)
hsv(260, 57%, 31%)
cmyk(38%, 57%, 0%, 69%)
lab(17.28, 18.83, -25.26)
lch(17.28, 31.51, 306.7)
oklch(29.5%, 0.0798, 296.57)
hwb(260, 13.3%, 69%)
Harmony colors
Accessibility
White text reads better on this background (14.26:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2b2b47 · ΔE 6.9
Deuteranopia
#2c2d45 · ΔE 8.6
Tritanopia
#30403e · ΔE 24.1
Achromatopsia
#2a2a2a · ΔE 20.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31224f;
bg-[#31224f]
Related colors
Frequently asked questions
#31224f (#31224f) is rgb(49, 34, 79) in RGB.
No, #31224f 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 #31224f, or check how it holds up for accessibility.