#40219E#40219E
#40219E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.185 H 284.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #40219E |
|---|---|
| RGB | rgb(64, 33, 158) |
| HSL | hsl(255, 65%, 37%) |
| HSV | hsv(255, 79%, 62%) |
| CMYK | cmyk(59.5%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(25.70, 46.69, -62.14) |
| CIE-LCH | lch(25.70, 77.72, 306.92°) |
| OKLab | oklab(38.05% 0.0472 -0.179) |
| OKLCH | oklch(38.05% 0.185 284.8) |
| XYZ | xyz(8.8279, 4.6458, 32.7727) |
| Luminance | 0.0465 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.90
Ultramarine
#2000B1
ΔE00 5.28
Royal
#0C1793
ΔE00 5.37
Cobalt Blue
#030AA7
ΔE00 5.55
Royal Blue (survey)
#0504AA
ΔE00 5.79
Violet Blue
#510AC9
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40219E #7F9E21
analogous
#21419E #40219E #7F219E
triadic
#40219E #9E4021 #219E40
tetradic
#40219E #9E2141 #7F9E21 #219E7F
square
#40219E #9E2141 #7F9E21 #219E7F
split-complementary
#40219E #9E7F21 #419E21
monochromatic
#170C39 #2B166B #40219E #552CD1 #7C5CDD
Accessibility & contrast
On white
10.89
#40219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#40219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40219E
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40219E | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#07465F
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #40219e; /* rgb */ color: rgb(64, 33, 158); /* oklch */ color: oklch(38.0% 0.185 284.8);
Tailwind
colors: {
custom: {
50: '#8161bc',
500: '#40219e',
950: '#000000',
},
}SCSS
$custom: #40219e; $custom-light: #8161bc; $custom-dark: #000000;
JSON
{
"hex": "#40219e",
"rgb": {
"r": 64,
"g": 33,
"b": 158
},
"hsl": {
"h": 254.88,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.3805,
"c": 0.18516,
"h": 284.8
},
"luminance": 0.04646
}Semantic roles & 50–950 ramp
primary
#40219E
secondary
#A8C159
accent
#E83FBE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981