Color #311527
A moderately saturated very dark magenta.
Conversions
#311527
rgb(49, 21, 39)
hsl(321.4, 40%, 13.7%)
hsv(321.4, 57.1%, 19.2%)
cmyk(0%, 57.1%, 20.4%, 80.8%)
lab(11.52, 17.08, -5.98)
lch(11.52, 18.1, 340.7)
oklch(24.4%, 0.053, 342.56)
hwb(321.4, 8.2%, 80.8%)
Harmony colors
Accessibility
White text reads better on this background (16.57:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#272723 · ΔE 19.9
Deuteranopia
#292b23 · ΔE 24.1
Tritanopia
#302020 · ΔE 10
Achromatopsia
#1f1f1f · ΔE 16.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #311527;
bg-[#311527]
Related colors
Frequently asked questions
#311527 (#311527) is rgb(49, 21, 39) in RGB.
No, #311527 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 #311527, or check how it holds up for accessibility.