#3A1E86#3A1E86
#3A1E86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.160 H 287.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1E86 |
|---|---|
| RGB | rgb(58, 30, 134) |
| HSL | hsl(256, 63%, 32%) |
| HSV | hsv(256, 78%, 53%) |
| CMYK | cmyk(56.7%, 77.6%, 0%, 47.5%) |
| CIE-LAB | lab(22.12, 40.27, -53.20) |
| CIE-LCH | lch(22.12, 66.72, 307.13°) |
| OKLab | oklab(34.66% 0.047 -0.1531) |
| OKLCH | oklch(34.66% 0.16 287.1) |
| XYZ | xyz(6.5110, 3.5490, 22.8916) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.22
Royal
#0C1793
ΔE00 4.90
Indigo
#4B0082
ΔE00 5.11
Midnight Blue
#191970
ΔE00 5.46
Indigo Blue
#3A18B1
ΔE00 6.15
Cobalt Blue
#030AA7
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1E86 #6A861E
analogous
#1E3686 #3A1E86 #6E1E86
triadic
#3A1E86 #863A1E #1E863A
tetradic
#3A1E86 #861E36 #6A861E #1E866E
square
#3A1E86 #861E36 #6A861E #1E866E
split-complementary
#3A1E86 #866E1E #36861E
monochromatic
#0F0822 #241354 #3A1E86 #5029B8 #6E48D6
Accessibility & contrast
On white
12.28
#3A1E86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3A1E86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1E86
12.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1E86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1E86 | 1.00 | 12.28 | 1.71 | 12.28 |
| #FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#193B51
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3a1e86; /* rgb */ color: rgb(58, 30, 134); /* oklch */ color: oklch(34.7% 0.160 287.1);
Tailwind
colors: {
custom: {
50: '#795daa',
500: '#3a1e86',
950: '#000000',
},
}SCSS
$custom: #3a1e86; $custom-light: #795daa; $custom-dark: #000000;
JSON
{
"hex": "#3a1e86",
"rgb": {
"r": 58,
"g": 30,
"b": 134
},
"hsl": {
"h": 256.154,
"s": 63.415,
"l": 32.157
},
"oklch": {
"l": 0.34663,
"c": 0.16015,
"h": 287.1
},
"luminance": 0.03549
}Semantic roles & 50–950 ramp
primary
#3A1E86
secondary
#9AB847
accent
#E641BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F