#40219C#40219C
#40219C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.183 H 285.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).
Color values
| HEX | #40219C |
|---|---|
| RGB | rgb(64, 33, 156) |
| HSL | hsl(255, 65%, 37%) |
| HSV | hsv(255, 79%, 61%) |
| CMYK | cmyk(59%, 78.8%, 0%, 38.8%) |
| CIE-LAB | lab(25.50, 46.10, -61.25) |
| CIE-LCH | lch(25.50, 76.67, 306.97°) |
| OKLab | oklab(37.85% 0.0478 -0.1765) |
| OKLCH | oklch(37.85% 0.183 285.2) |
| XYZ | xyz(8.6571, 4.5775, 31.8734) |
| Luminance | 0.0458 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.16
Royal
#0C1793
ΔE00 5.31
Ultramarine
#2000B1
ΔE00 5.41
Cobalt Blue
#030AA7
ΔE00 5.62
Royal Blue (survey)
#0504AA
ΔE00 5.88
Indigo (survey)
#380282
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40219C #7D9C21
analogous
#21409C #40219C #7E219C
triadic
#40219C #9C4021 #219C40
tetradic
#40219C #9C2140 #7D9C21 #219C7E
square
#40219C #9C2140 #7D9C21 #219C7E
split-complementary
#40219C #9C7E21 #409C21
monochromatic
#170C37 #2B1669 #40219C #552CCF #7C5BDC
Accessibility & contrast
On white
10.96
#40219C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#40219C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40219C
10.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40219C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40219C | 1.00 | 10.96 | 1.92 | 10.96 |
| #FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#0C455E
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #40219c; /* rgb */ color: rgb(64, 33, 156); /* oklch */ color: oklch(37.8% 0.183 285.2);
Tailwind
colors: {
custom: {
50: '#8061ba',
500: '#40219c',
950: '#000000',
},
}SCSS
$custom: #40219c; $custom-light: #8061ba; $custom-dark: #000000;
JSON
{
"hex": "#40219c",
"rgb": {
"r": 64,
"g": 33,
"b": 156
},
"hsl": {
"h": 255.122,
"s": 65.079,
"l": 37.059
},
"oklch": {
"l": 0.37845,
"c": 0.18284,
"h": 285.2
},
"luminance": 0.04578
}Semantic roles & 50–950 ramp
primary
#40219C
secondary
#A6C158
accent
#E840BE
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981