#3E218E#3E218E
#3E218E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.166 H 287.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3E218E |
|---|---|
| RGB | rgb(62, 33, 142) |
| HSL | hsl(256, 62%, 34%) |
| HSV | hsv(256, 77%, 56%) |
| CMYK | cmyk(56.3%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(23.88, 41.70, -55.28) |
| CIE-LCH | lch(23.88, 69.25, 307.03°) |
| OKLab | oklab(36.24% 0.0487 -0.1591) |
| OKLCH | oklch(36.24% 0.166 287) |
| XYZ | xyz(7.4115, 4.0644, 25.9799) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.04
Indigo Blue
#3A18B1
ΔE00 5.10
Royal
#0C1793
ΔE00 5.13
Indigo
#4B0082
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 6.36
Ultramarine
#2000B1
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E218E #718E21
analogous
#213B8E #3E218E #75218E
triadic
#3E218E #8E3E21 #218E3E
tetradic
#3E218E #8E213B #718E21 #218E75
square
#3E218E #8E213B #718E21 #218E75
split-complementary
#3E218E #8E7521 #3B8E21
monochromatic
#130A2B #28155C #3E218E #542DC0 #7652D7
Accessibility & contrast
On white
11.58
#3E218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3E218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E218E
11.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E218E | 1.00 | 11.58 | 1.81 | 11.58 |
| #FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1B3F56
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3e218e; /* rgb */ color: rgb(62, 33, 142); /* oklch */ color: oklch(36.2% 0.166 287.0);
Tailwind
colors: {
custom: {
50: '#7d60b0',
500: '#3e218e',
950: '#000000',
},
}SCSS
$custom: #3e218e; $custom-light: #7d60b0; $custom-dark: #000000;
JSON
{
"hex": "#3e218e",
"rgb": {
"r": 62,
"g": 33,
"b": 142
},
"hsl": {
"h": 255.963,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.36243,
"c": 0.16637,
"h": 287
},
"luminance": 0.04065
}Semantic roles & 50–950 ramp
primary
#3E218E
secondary
#9EBA50
accent
#E542BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980