Skip to content
Kolorvia
#402f52

Color #402f52

A muted dark purple.

Conversions

HEX
#402f52
RGB
rgb(64, 47, 82)
HSL
hsl(269.1, 27.1%, 25.3%)
HSV / HSB
hsv(269.1, 42.7%, 32.2%)
CMYK
cmyk(22%, 42.7%, 0%, 67.8%)
LAB
lab(22.77, 15.82, -18.49)
LCH
lch(22.77, 24.33, 310.55)
OKLCH
oklch(34.1%, 0.0631, 305.65)
HWB
hwb(269.1, 18.4%, 67.8%)

Harmony colors

Complementary

#41522f

Analogous

#2f3052
#402f52
#512f52

Triadic

#402f52
#52402f
#2f5240

Split-complementary

#402f52
#52512f
#30522f

Tetradic

#402f52
#522f41
#41522f
#2f5240

Square

#402f52
#522f30
#41522f
#2f5251

Shades

Color #402f52 mixed toward black.

#352744
#2b1f37
#201829
#15101b
#0b080e

Tints

Color #402f52 mixed toward white.

#5f467a
#7f5ea2
#9f86ba
#bfaed1
#dfd7e8

Tones

Color #402f52 mixed toward gray.

#40324f
#40354c
#403849
#403b46
#403e43

Accessibility

Aa White text on this color
12.02:1
Aa Black text on this color
1.75:1

White text reads better on this background (12.02:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#39394b · ΔE 9.5

Deuteranopia

#3a3b4a · ΔE 11.1

Tritanopia

#3f4544 · ΔE 20.3

Achromatopsia

#363636 · ΔE 17.8

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #402f52;
Tailwind (arbitrary value)
bg-[#402f52]

Related colors

Rebecca Purple #663399
Blue Violet #8a2be2
Indigo #4b0082
Medium Purple #9370db
Dark Orchid #9932cc
Dark Violet #9400d3

Frequently asked questions

#402f52 (#402f52) is rgb(64, 47, 82) in RGB.

No, #402f52 is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #402f52, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.