Color #331f2e
A muted very dark magenta.
Conversions
#331f2e
rgb(51, 31, 46)
hsl(315, 24.4%, 16.1%)
hsv(315, 39.2%, 20%)
cmyk(0%, 39.2%, 9.8%, 80%)
lab(14.85, 12.65, -6.01)
lch(14.85, 14.01, 334.59)
oklch(27.1%, 0.0398, 336.14)
hwb(315, 12.2%, 80%)
Harmony colors
Accessibility
White text reads better on this background (15.26:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2b2b · ΔE 13.3
Deuteranopia
#2d2e2a · ΔE 17.7
Tritanopia
#322828 · ΔE 9.5
Achromatopsia
#252525 · ΔE 13.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #331f2e;
bg-[#331f2e]
Related colors
Frequently asked questions
#331f2e (#331f2e) is rgb(51, 31, 46) in RGB.
No, #331f2e 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 #331f2e, or check how it holds up for accessibility.