#3E218B#3E218B
#3E218B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.163 H 287.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #3E218B |
|---|---|
| RGB | rgb(62, 33, 139) |
| HSL | hsl(256, 62%, 34%) |
| HSV | hsv(256, 76%, 55%) |
| CMYK | cmyk(55.4%, 76.3%, 0%, 45.5%) |
| CIE-LAB | lab(23.59, 40.81, -53.90) |
| CIE-LCH | lch(23.59, 67.60, 307.13°) |
| OKLab | oklab(35.95% 0.0495 -0.155) |
| OKLCH | oklch(35.95% 0.163 287.7) |
| XYZ | xyz(7.1893, 3.9756, 24.8096) |
| Luminance | 0.0398 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.93
Royal
#0C1793
ΔE00 5.29
Indigo
#4B0082
ΔE00 5.42
Indigo Blue
#3A18B1
ΔE00 5.55
Midnight Blue
#191970
ΔE00 6.37
Cobalt Blue
#030AA7
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E218B #6E8B21
analogous
#21398B #3E218B #73218B
triadic
#3E218B #8B3E21 #218B3E
tetradic
#3E218B #8B2139 #6E8B21 #218B73
square
#3E218B #8B2139 #6E8B21 #218B73
split-complementary
#3E218B #8B7321 #398B21
monochromatic
#120A28 #28155A #3E218B #542DBC #7551D6
Accessibility & contrast
On white
11.70
#3E218B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#3E218B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E218B
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E218B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E218B | 1.00 | 11.70 | 1.80 | 11.70 |
| #FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#1E3E54
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3e218b; /* rgb */ color: rgb(62, 33, 139); /* oklch */ color: oklch(35.9% 0.163 287.7);
Tailwind
colors: {
custom: {
50: '#7c60ae',
500: '#3e218b',
950: '#000000',
},
}SCSS
$custom: #3e218b; $custom-light: #7c60ae; $custom-dark: #000000;
JSON
{
"hex": "#3e218b",
"rgb": {
"r": 62,
"g": 33,
"b": 139
},
"hsl": {
"h": 256.415,
"s": 61.628,
"l": 33.725
},
"oklch": {
"l": 0.35948,
"c": 0.16274,
"h": 287.7
},
"luminance": 0.03976
}Semantic roles & 50–950 ramp
primary
#3E218B
secondary
#9CB94F
accent
#E543B8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F