Skip to content
Kolorvia
#40314a

Color #40314a

A muted dark purple.

Conversions

HEX
#40314a
RGB
rgb(64, 49, 74)
HSL
hsl(276, 20.3%, 24.1%)
HSV / HSB
hsv(276, 33.8%, 29%)
CMYK
cmyk(13.5%, 33.8%, 0%, 71%)
LAB
lab(22.93, 12.37, -12.89)
LCH
lch(22.93, 17.87, 313.82)
OKLCH
oklch(34.1%, 0.047, 311.29)
HWB
hwb(276, 19.2%, 71%)

Harmony colors

Complementary

#3b4a31

Analogous

#33314a
#40314a
#4a3147

Triadic

#40314a
#4a4031
#314a40

Split-complementary

#40314a
#474a31
#314a33

Tetradic

#40314a
#4a313b
#3b4a31
#314a40

Square

#40314a
#4a3331
#3b4a31
#31474a

Shades

Color #40314a mixed toward black.

#35293e
#2b2131
#201825
#151019
#0b080c

Tints

Color #40314a mixed toward white.

#624b71
#836498
#a28bb2
#c1b1cc
#e0d8e5

Tones

Color #40314a mixed toward gray.

#403348
#3f3546
#3f3744
#3e3942
#3e3b40

Accessibility

Aa White text on this color
11.96:1
Aa Black text on this color
1.76:1

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

Under color vision deficiencies

Protanopia

#3a3a45 · ΔE 9.8

Deuteranopia

#3b3c44 · ΔE 11.6

Tritanopia

#3f4140 · ΔE 16.6

Achromatopsia

#373737 · ΔE 14.9

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

Code

CSS
background-color: #40314a;
Tailwind (arbitrary value)
bg-[#40314a]

Related colors

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

Frequently asked questions

#40314a (#40314a) is rgb(64, 49, 74) in RGB.

No, #40314a 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 #40314a, 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.