#3E157E#3E157E
#3E157E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.160 H 293.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #3E157E |
|---|---|
| RGB | rgb(62, 21, 126) |
| HSL | hsl(263, 71%, 29%) |
| HSV | hsv(263, 83%, 49%) |
| CMYK | cmyk(50.8%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(20.31, 42.80, -51.11) |
| CIE-LCH | lch(20.31, 66.66, 309.95°) |
| OKLab | oklab(33.26% 0.0629 -0.1467) |
| OKLCH | oklch(33.26% 0.16 293.2) |
| XYZ | xyz(6.0196, 3.0666, 20.0094) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.73
Indigo
#4B0082
ΔE00 3.20
Royal Purple (survey)
#4B006E
ΔE00 4.92
Midnight Blue
#191970
ΔE00 5.94
Royal
#0C1793
ΔE00 6.18
Darkblue
#00008B
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E157E #557E15
analogous
#15207E #3E157E #73157E
triadic
#3E157E #7E3E15 #157E3E
tetradic
#3E157E #7E1520 #557E15 #157E73
square
#3E157E #7E1520 #557E15 #157E73
split-complementary
#3E157E #7E7315 #207E15
monochromatic
#0D041A #240C4A #3E157E #581EB2 #7431DD
Accessibility & contrast
On white
13.02
#3E157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3E157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E157E
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E157E | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#29344A
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3e157e; /* rgb */ color: rgb(62, 21, 126); /* oklch */ color: oklch(33.3% 0.160 293.2);
Tailwind
colors: {
custom: {
50: '#7b59a4',
500: '#3e157e',
950: '#000000',
},
}SCSS
$custom: #3e157e; $custom-light: #7b59a4; $custom-dark: #000000;
JSON
{
"hex": "#3e157e",
"rgb": {
"r": 62,
"g": 21,
"b": 126
},
"hsl": {
"h": 263.429,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.33264,
"c": 0.15965,
"h": 293.2
},
"luminance": 0.03067
}Semantic roles & 50–950 ramp
primary
#3E157E
secondary
#84B33C
accent
#EE3AA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F