#3E159F#3E159F
#3E159F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.196 H 284.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3E159F |
|---|---|
| RGB | rgb(62, 21, 159) |
| HSL | hsl(258, 77%, 35%) |
| HSV | hsv(258, 87%, 62%) |
| CMYK | cmyk(61%, 86.8%, 0%, 37.6%) |
| CIE-LAB | lab(23.88, 51.80, -65.76) |
| CIE-LCH | lch(23.88, 83.71, 308.23°) |
| OKLab | oklab(36.78% 0.0503 -0.1895) |
| OKLCH | oklch(36.78% 0.196 284.9) |
| XYZ | xyz(8.5109, 4.0631, 33.1299) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.55
Ultramarine
#2000B1
ΔE00 3.83
Cobalt Blue
#030AA7
ΔE00 4.36
Royal Blue (survey)
#0504AA
ΔE00 4.45
Royal
#0C1793
ΔE00 4.91
Indigo (survey)
#380282
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E159F #769F15
analogous
#15319F #3E159F #83159F
triadic
#3E159F #9F3E15 #159F3E
tetradic
#3E159F #9F1531 #769F15 #159F83
square
#3E159F #9F1531 #769F15 #159F83
split-complementary
#3E159F #9F8315 #319F15
monochromatic
#140733 #290E69 #3E159F #531CD5 #7748E7
Accessibility & contrast
On white
11.58
#3E159F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3E159F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E159F
11.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E159F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E159F | 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)
#003CA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3e159f; /* rgb */ color: rgb(62, 21, 159); /* oklch */ color: oklch(36.8% 0.196 284.9);
Tailwind
colors: {
custom: {
50: '#815bbd',
500: '#3e159f',
950: '#000000',
},
}SCSS
$custom: #3e159f; $custom-light: #815bbd; $custom-dark: #000000;
JSON
{
"hex": "#3e159f",
"rgb": {
"r": 62,
"g": 21,
"b": 159
},
"hsl": {
"h": 257.826,
"s": 76.667,
"l": 35.294
},
"oklch": {
"l": 0.36777,
"c": 0.19609,
"h": 284.9
},
"luminance": 0.04064
}Semantic roles & 50–950 ramp
primary
#3E159F
secondary
#A2C848
accent
#F335BB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981