#3E2188#3E2188
#3E2188 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.159 H 288.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2188 |
|---|---|
| RGB | rgb(62, 33, 136) |
| HSL | hsl(257, 61%, 33%) |
| HSV | hsv(257, 76%, 53%) |
| CMYK | cmyk(54.4%, 75.7%, 0%, 46.7%) |
| CIE-LAB | lab(23.30, 39.91, -52.50) |
| CIE-LCH | lch(23.30, 65.95, 307.24°) |
| OKLab | oklab(35.66% 0.0503 -0.1509) |
| OKLCH | oklch(35.66% 0.159 288.4) |
| XYZ | xyz(6.9731, 3.8891, 23.6710) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.87
Indigo
#4B0082
ΔE00 5.32
Royal
#0C1793
ΔE00 5.49
Indigo Blue
#3A18B1
ΔE00 6.02
Midnight Blue
#191970
ΔE00 6.14
Cobalt Blue
#030AA7
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2188 #6B8821
analogous
#213788 #3E2188 #712188
triadic
#3E2188 #883E21 #21883E
tetradic
#3E2188 #882137 #6B8821 #218871
square
#3E2188 #882137 #6B8821 #218871
split-complementary
#3E2188 #887121 #378821
monochromatic
#110925 #281557 #3E2188 #542DB9 #754FD4
Accessibility & contrast
On white
11.81
#3E2188 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3E2188 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2188
11.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2188 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2188 | 1.00 | 11.81 | 1.78 | 11.81 |
| #FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#213D53
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3e2188; /* rgb */ color: rgb(62, 33, 136); /* oklch */ color: oklch(35.7% 0.159 288.4);
Tailwind
colors: {
custom: {
50: '#7c5fac',
500: '#3e2188',
950: '#000000',
},
}SCSS
$custom: #3e2188; $custom-light: #7c5fac; $custom-dark: #000000;
JSON
{
"hex": "#3e2188",
"rgb": {
"r": 62,
"g": 33,
"b": 136
},
"hsl": {
"h": 256.893,
"s": 60.947,
"l": 33.137
},
"oklch": {
"l": 0.35656,
"c": 0.15908,
"h": 288.4
},
"luminance": 0.03889
}Semantic roles & 50–950 ramp
primary
#3E2188
secondary
#9AB84D
accent
#E444B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F