#3A1E87#3A1E87
#3A1E87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.161 H 286.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1E87 |
|---|---|
| RGB | rgb(58, 30, 135) |
| HSL | hsl(256, 64%, 32%) |
| HSV | hsv(256, 78%, 53%) |
| CMYK | cmyk(57%, 77.8%, 0%, 47.1%) |
| CIE-LAB | lab(22.22, 40.57, -53.66) |
| CIE-LCH | lch(22.22, 67.27, 307.09°) |
| OKLab | oklab(34.76% 0.0467 -0.1544) |
| OKLCH | oklch(34.76% 0.161 286.8) |
| XYZ | xyz(6.5811, 3.5770, 23.2606) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.23
Royal
#0C1793
ΔE00 4.82
Indigo
#4B0082
ΔE00 5.13
Midnight Blue
#191970
ΔE00 5.54
Indigo Blue
#3A18B1
ΔE00 6.00
Cobalt Blue
#030AA7
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1E87 #6B871E
analogous
#1E3787 #3A1E87 #6F1E87
triadic
#3A1E87 #873A1E #1E873A
tetradic
#3A1E87 #871E37 #6B871E #1E876F
square
#3A1E87 #871E37 #6B871E #1E876F
split-complementary
#3A1E87 #876F1E #37871E
monochromatic
#0F0823 #241355 #3A1E87 #5029B9 #6F49D7
Accessibility & contrast
On white
12.24
#3A1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3A1E87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1E87
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1E87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1E87 | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#173C51
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3a1e87; /* rgb */ color: rgb(58, 30, 135); /* oklch */ color: oklch(34.8% 0.161 286.8);
Tailwind
colors: {
custom: {
50: '#7a5dab',
500: '#3a1e87',
950: '#000000',
},
}SCSS
$custom: #3a1e87; $custom-light: #7a5dab; $custom-dark: #000000;
JSON
{
"hex": "#3a1e87",
"rgb": {
"r": 58,
"g": 30,
"b": 135
},
"hsl": {
"h": 256,
"s": 63.636,
"l": 32.353
},
"oklch": {
"l": 0.34763,
"c": 0.16136,
"h": 286.8
},
"luminance": 0.03577
}Semantic roles & 50–950 ramp
primary
#3A1E87
secondary
#9BB948
accent
#E741BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F