#3A1B86#3A1B86
#3A1B86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.163 H 287.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1B86 |
|---|---|
| RGB | rgb(58, 27, 134) |
| HSL | hsl(257, 66%, 32%) |
| HSV | hsv(257, 80%, 53%) |
| CMYK | cmyk(56.7%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.60, 41.78, -54.06) |
| CIE-LCH | lch(21.60, 68.32, 307.69°) |
| OKLab | oklab(34.29% 0.0493 -0.1556) |
| OKLCH | oklch(34.29% 0.163 287.6) |
| XYZ | xyz(6.4387, 3.4043, 22.8675) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.59
Indigo
#4B0082
ΔE00 4.60
Royal
#0C1793
ΔE00 4.80
Midnight Blue
#191970
ΔE00 5.52
Indigo Blue
#3A18B1
ΔE00 6.09
Darkblue
#00008B
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1B86 #67861B
analogous
#1B3286 #3A1B86 #701B86
triadic
#3A1B86 #863A1B #1B863A
tetradic
#3A1B86 #861B32 #67861B #1B8670
square
#3A1B86 #861B32 #67861B #1B8670
split-complementary
#3A1B86 #86701B #32861B
monochromatic
#0E0620 #241153 #3A1B86 #5025B9 #6E42D9
Accessibility & contrast
On white
12.49
#3A1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#3A1B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1B86
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1B86 | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#193A50
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3a1b86; /* rgb */ color: rgb(58, 27, 134); /* oklch */ color: oklch(34.3% 0.163 287.6);
Tailwind
colors: {
custom: {
50: '#7a5caa',
500: '#3a1b86',
950: '#000000',
},
}SCSS
$custom: #3a1b86; $custom-light: #7a5caa; $custom-dark: #000000;
JSON
{
"hex": "#3a1b86",
"rgb": {
"r": 58,
"g": 27,
"b": 134
},
"hsl": {
"h": 257.383,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.34295,
"c": 0.16321,
"h": 287.6
},
"luminance": 0.03405
}Semantic roles & 50–950 ramp
primary
#3A1B86
secondary
#97B944
accent
#E93EB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F