Skip to content
Kolorvia
#402b59

Color #402b59

A muted dark purple.

Conversions

HEX
#402b59
RGB
rgb(64, 43, 89)
HSL
hsl(267.4, 34.8%, 25.9%)
HSV / HSB
hsv(267.4, 51.7%, 34.9%)
CMYK
cmyk(28.1%, 51.7%, 0%, 65.1%)
LAB
lab(22.08, 20.41, -24.21)
LCH
lch(22.08, 31.67, 310.13)
OKLCH
oklch(33.7%, 0.0813, 303.36)
HWB
hwb(267.4, 16.9%, 65.1%)

Harmony colors

Complementary

#44592b

Analogous

#2b2d59
#402b59
#572b59

Triadic

#402b59
#59402b
#2b5940

Split-complementary

#402b59
#59572b
#2d592b

Tetradic

#402b59
#592b44
#44592b
#2b5940

Square

#402b59
#592b2d
#44592b
#2b5957

Shades

Color #402b59 mixed toward black.

#35244a
#2b1d3b
#20162d
#150e1e
#0b070f

Tints

Color #402b59 mixed toward white.

#5f4083
#7d55ad
#9e80c1
#beaad6
#dfd5ea

Tones

Color #402b59 mixed toward gray.

#402f55
#413351
#41374e
#413a4a
#423e46

Accessibility

Aa White text on this color
12.3:1
Aa Black text on this color
1.71:1

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

Under color vision deficiencies

Protanopia

#383851 · ΔE 9.3

Deuteranopia

#393b4e · ΔE 12

Tritanopia

#3f4948 · ΔE 22.4

Achromatopsia

#353535 · ΔE 20.3

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

Code

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

Related colors

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

Frequently asked questions

#402b59 (#402b59) is rgb(64, 43, 89) in RGB.

No, #402b59 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 #402b59, 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.