Color #402d3b
A muted dark magenta.
Conversions
#402d3b
rgb(64, 45, 59)
hsl(315.8, 17.4%, 21.4%)
hsv(315.8, 29.7%, 25.1%)
cmyk(0%, 29.7%, 7.8%, 74.9%)
lab(21.14, 11.5, -5.46)
lch(21.14, 12.73, 334.6)
oklch(32.5%, 0.036, 336.22)
hwb(315.8, 17.6%, 74.9%)
Harmony colors
Accessibility
White text reads better on this background (12.68:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393838 · ΔE 12.5
Deuteranopia
#3a3b37 · ΔE 16.6
Tritanopia
#3f3535 · ΔE 8.8
Achromatopsia
#333333 · ΔE 12.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402d3b;
bg-[#402d3b]
Related colors
Frequently asked questions
#402d3b (#402d3b) is rgb(64, 45, 59) in RGB.
No, #402d3b is not web-safe. The nearest web-safe colors are among its tones and shades below.
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 #402d3b, or check how it holds up for accessibility.