Skip to content
Kolorvia
#402b6a

Color #402b6a

A moderately saturated dark purple.

Conversions

HEX
#402b6a
RGB
rgb(64, 43, 106)
HSL
hsl(260, 42.3%, 29.2%)
HSV / HSB
hsv(260, 59.4%, 41.6%)
CMYK
cmyk(39.6%, 59.4%, 0%, 58.4%)
LAB
lab(23.2, 25.36, -33.56)
LCH
lch(23.2, 42.06, 307.08)
OKLCH
oklch(34.8%, 0.1057, 295.79)
HWB
hwb(260, 16.9%, 58.4%)

Harmony colors

Complementary

#556a2b

Analogous

#2b356a
#402b6a
#5f2b6a

Triadic

#402b6a
#6a402b
#2b6a40

Split-complementary

#402b6a
#6a5f2b
#356a2b

Tetradic

#402b6a
#6a2b55
#556a2b
#2b6a40

Square

#402b6a
#6a2b35
#556a2b
#2b6a5f

Shades

Color #402b6a mixed toward black.

#352458
#2b1d47
#201535
#150e23
#0b0712

Tints

Color #402b6a mixed toward white.

#5a3c95
#7654ba
#987fcb
#baa9dc
#ddd4ee

Tones

Color #402b6a mixed toward gray.

#423065
#43355f
#453b5a
#474055
#494550

Accessibility

Aa White text on this color
11.85:1
Aa Black text on this color
1.77:1

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

Under color vision deficiencies

Protanopia

#38385f · ΔE 7.3

Deuteranopia

#393b5c · ΔE 9.1

Tritanopia

#3f5653 · ΔE 26.5

Achromatopsia

#373737 · ΔE 22.7

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

Code

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

Related colors

Medium Purple #9370db
Rebecca Purple #663399
Blue Violet #8a2be2
Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee
Slate Blue #6a5acd

Frequently asked questions

#402b6a (#402b6a) is rgb(64, 43, 106) in RGB.

No, #402b6a is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #402b6a, 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.