#3E157F#3E157F
#3E157F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.161 H 292.9°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).
Color values
| HEX | #3E157F |
|---|---|
| RGB | rgb(62, 21, 127) |
| HSL | hsl(263, 72%, 29%) |
| HSV | hsv(263, 83%, 50%) |
| CMYK | cmyk(51.2%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(20.41, 43.07, -51.57) |
| CIE-LCH | lch(20.41, 67.19, 309.87°) |
| OKLab | oklab(33.37% 0.0625 -0.1481) |
| OKLCH | oklch(33.37% 0.161 292.9) |
| XYZ | xyz(6.0845, 3.0926, 20.3509) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.68
Indigo
#4B0082
ΔE00 3.19
Royal Purple (survey)
#4B006E
ΔE00 5.03
Midnight Blue
#191970
ΔE00 5.96
Royal
#0C1793
ΔE00 6.07
Darkblue
#00008B
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E157F #567F15
analogous
#15217F #3E157F #73157F
triadic
#3E157F #7F3E15 #157F3E
tetradic
#3E157F #7F1521 #567F15 #157F73
square
#3E157F #7F1521 #567F15 #157F73
split-complementary
#3E157F #7F7315 #217F15
monochromatic
#0D041A #240C4A #3E157F #581EB4 #7431DD
Accessibility & contrast
On white
12.97
#3E157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3E157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E157F
12.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E157F | 1.00 | 12.97 | 1.62 | 12.97 |
| #FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#29344B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3e157f; /* rgb */ color: rgb(62, 21, 127); /* oklch */ color: oklch(33.4% 0.161 292.9);
Tailwind
colors: {
custom: {
50: '#7b59a5',
500: '#3e157f',
950: '#000000',
},
}SCSS
$custom: #3e157f; $custom-light: #7b59a5; $custom-dark: #000000;
JSON
{
"hex": "#3e157f",
"rgb": {
"r": 62,
"g": 21,
"b": 127
},
"hsl": {
"h": 263.208,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.33365,
"c": 0.16077,
"h": 292.9
},
"luminance": 0.03093
}Semantic roles & 50–950 ramp
primary
#3E157F
secondary
#86B43C
accent
#EE39A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F