Skip to content
Kolorvia
#40135d

Color #40135d

A moderately saturated dark purple.

Conversions

HEX
#40135d
RGB
rgb(64, 19, 93)
HSL
hsl(276.5, 66.1%, 22%)
HSV / HSB
hsv(276.5, 79.6%, 36.5%)
CMYK
cmyk(31.2%, 79.6%, 0%, 63.5%)
LAB
lab(17.21, 35.34, -34.69)
LCH
lch(17.21, 49.52, 315.53)
OKLCH
oklch(30.2%, 0.1254, 308.23)
HWB
hwb(276.5, 7.5%, 63.5%)

Harmony colors

Complementary

#305d13

Analogous

#1b135d
#40135d
#5d1355

Triadic

#40135d
#5d4013
#135d40

Split-complementary

#40135d
#555d13
#135d1b

Tetradic

#40135d
#5d1330
#305d13
#135d40

Square

#40135d
#5d1b13
#305d13
#13555d

Shades

Color #40135d mixed toward black.

#35104e
#2b0d3e
#200a2f
#15061f
#0b0310

Tints

Color #40135d mixed toward white.

#661e94
#8c29cb
#aa5add
#c691e9
#e3c8f4

Tones

Color #40135d mixed toward gray.

#3f1957
#3d1f51
#3c264b
#3b2c44
#39323e

Accessibility

Aa White text on this color
14.29:1
Aa Black text on this color
1.47:1

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

Under color vision deficiencies

Protanopia

#323252 · ΔE 13

Deuteranopia

#34374f · ΔE 15.5

Tritanopia

#3f4846 · ΔE 24.9

Achromatopsia

#2a2a2a · ΔE 24.3

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

Code

CSS
background-color: #40135d;
Tailwind (arbitrary value)
bg-[#40135d]

Related colors

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

Frequently asked questions

#40135d (#40135d) is rgb(64, 19, 93) in RGB.

No, #40135d 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 #40135d, 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.