Color #331838
A moderately saturated very dark magenta.
Conversions
#331838
rgb(51, 24, 56)
hsl(290.6, 40%, 15.7%)
hsv(290.6, 57.1%, 22%)
cmyk(8.9%, 57.1%, 0%, 78%)
lab(13.49, 19.7, -15.26)
lch(13.49, 24.92, 322.24)
oklch(26.2%, 0.0673, 321.15)
hwb(290.6, 9.4%, 78%)
Harmony colors
Accessibility
White text reads better on this background (15.81:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2a2932 · ΔE 14.4
Deuteranopia
#2b2d31 · ΔE 18
Tritanopia
#322d2c · ΔE 17.9
Achromatopsia
#232323 · ΔE 18.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #331838;
bg-[#331838]
Related colors
Frequently asked questions
#331838 (#331838) is rgb(51, 24, 56) in RGB.
No, #331838 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 #331838, or check how it holds up for accessibility.