#40208F#40208F
#40208F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.168 H 288.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).
Color values
| HEX | #40208F |
|---|---|
| RGB | rgb(64, 32, 143) |
| HSL | hsl(257, 63%, 34%) |
| HSV | hsv(257, 78%, 56%) |
| CMYK | cmyk(55.2%, 77.6%, 0%, 43.9%) |
| CIE-LAB | lab(24.02, 42.80, -55.68) |
| CIE-LCH | lch(24.02, 70.22, 307.55°) |
| OKLab | oklab(36.42% 0.0524 -0.1601) |
| OKLCH | oklch(36.42% 0.168 288.1) |
| XYZ | xyz(7.5873, 4.1058, 26.3740) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.91
Indigo Blue
#3A18B1
ΔE00 4.94
Indigo
#4B0082
ΔE00 5.26
Royal
#0C1793
ΔE00 5.32
Cobalt Blue
#030AA7
ΔE00 6.37
Ultramarine
#2000B1
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40208F #6F8F20
analogous
#20388F #40208F #78208F
triadic
#40208F #8F4020 #208F40
tetradic
#40208F #8F2038 #6F8F20 #208F78
square
#40208F #8F2038 #6F8F20 #208F78
split-complementary
#40208F #8F7820 #388F20
monochromatic
#130A2B #2A155D #40208F #562BC1 #7851D8
Accessibility & contrast
On white
11.53
#40208F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#40208F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40208F
11.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40208F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40208F | 1.00 | 11.53 | 1.82 | 11.53 |
| #FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#203F56
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #40208f; /* rgb */ color: rgb(64, 32, 143); /* oklch */ color: oklch(36.4% 0.168 288.1);
Tailwind
colors: {
custom: {
50: '#7e5fb1',
500: '#40208f',
950: '#000000',
},
}SCSS
$custom: #40208f; $custom-light: #7e5fb1; $custom-dark: #000000;
JSON
{
"hex": "#40208f",
"rgb": {
"r": 64,
"g": 32,
"b": 143
},
"hsl": {
"h": 257.297,
"s": 63.429,
"l": 34.314
},
"oklch": {
"l": 0.36418,
"c": 0.16849,
"h": 288.1
},
"luminance": 0.04106
}Semantic roles & 50–950 ramp
primary
#40208F
secondary
#9CBB4F
accent
#E641B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980