#3E2187#3E2187
#3E2187 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.158 H 288.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2187 |
|---|---|
| RGB | rgb(62, 33, 135) |
| HSL | hsl(257, 61%, 33%) |
| HSV | hsv(257, 76%, 53%) |
| CMYK | cmyk(54.1%, 75.6%, 0%, 47.1%) |
| CIE-LAB | lab(23.21, 39.61, -52.03) |
| CIE-LCH | lch(23.21, 65.39, 307.29°) |
| OKLab | oklab(35.56% 0.0506 -0.1495) |
| OKLCH | oklch(35.56% 0.158 288.7) |
| XYZ | xyz(6.9024, 3.8608, 23.2985) |
| Luminance | 0.0386 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.86
Indigo
#4B0082
ΔE00 5.30
Royal
#0C1793
ΔE00 5.57
Midnight Blue
#191970
ΔE00 6.07
Indigo Blue
#3A18B1
ΔE00 6.18
Cobalt Blue
#030AA7
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2187 #6A8721
analogous
#213787 #3E2187 #712187
triadic
#3E2187 #873E21 #21873E
tetradic
#3E2187 #872137 #6A8721 #218771
square
#3E2187 #872137 #6A8721 #218771
split-complementary
#3E2187 #877121 #378721
monochromatic
#110925 #271556 #3E2187 #552DB8 #744FD4
Accessibility & contrast
On white
11.85
#3E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#3E2187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2187
11.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2187 | 1.00 | 11.85 | 1.77 | 11.85 |
| #FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#223D52
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3e2187; /* rgb */ color: rgb(62, 33, 135); /* oklch */ color: oklch(35.6% 0.158 288.7);
Tailwind
colors: {
custom: {
50: '#7c5fab',
500: '#3e2187',
950: '#000000',
},
}SCSS
$custom: #3e2187; $custom-light: #7c5fab; $custom-dark: #000000;
JSON
{
"hex": "#3e2187",
"rgb": {
"r": 62,
"g": 33,
"b": 135
},
"hsl": {
"h": 257.059,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.35559,
"c": 0.15785,
"h": 288.7
},
"luminance": 0.03861
}Semantic roles & 50–950 ramp
primary
#3E2187
secondary
#99B74D
accent
#E444B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F