Color #402f3a
A muted dark magenta.
Conversions
#402f3a
rgb(64, 47, 58)
hsl(321.2, 15.3%, 21.8%)
hsv(321.2, 26.6%, 25.1%)
cmyk(0%, 26.6%, 9.4%, 74.9%)
lab(21.68, 9.94, -3.96)
lch(21.68, 10.7, 338.28)
oklch(32.9%, 0.0306, 339.9)
hwb(321.2, 18.4%, 74.9%)
Harmony colors
Accessibility
White text reads better on this background (12.46:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393938 · ΔE 12.3
Deuteranopia
#3a3b37 · ΔE 15
Tritanopia
#3f3635 · ΔE 8.1
Achromatopsia
#343434 · ΔE 11.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402f3a;
bg-[#402f3a]
Related colors
Frequently asked questions
#402f3a (#402f3a) is rgb(64, 47, 58) in RGB.
No, #402f3a 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 #402f3a, or check how it holds up for accessibility.