#3A1B85#3A1B85
#3A1B85 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.162 H 287.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1B85 |
|---|---|
| RGB | rgb(58, 27, 133) |
| HSL | hsl(258, 66%, 31%) |
| HSV | hsv(258, 80%, 52%) |
| CMYK | cmyk(56.4%, 79.7%, 0%, 47.8%) |
| CIE-LAB | lab(21.49, 41.48, -53.60) |
| CIE-LCH | lch(21.49, 67.78, 307.74°) |
| OKLab | oklab(34.19% 0.0496 -0.1542) |
| OKLCH | oklch(34.19% 0.162 287.8) |
| XYZ | xyz(6.3692, 3.3765, 22.5019) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.58
Indigo
#4B0082
ΔE00 4.58
Royal
#0C1793
ΔE00 4.88
Midnight Blue
#191970
ΔE00 5.44
Indigo Blue
#3A18B1
ΔE00 6.24
Darkblue
#00008B
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1B85 #66851B
analogous
#1B3185 #3A1B85 #6F1B85
triadic
#3A1B85 #853A1B #1B853A
tetradic
#3A1B85 #851B31 #66851B #1B856F
square
#3A1B85 #851B31 #66851B #1B856F
split-complementary
#3A1B85 #856F1B #31851B
monochromatic
#0E061F #241152 #3A1B85 #5025B8 #6E42D9
Accessibility & contrast
On white
12.53
#3A1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#3A1B85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1B85
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1B85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1B85 | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#1A394F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3a1b85; /* rgb */ color: rgb(58, 27, 133); /* oklch */ color: oklch(34.2% 0.162 287.8);
Tailwind
colors: {
custom: {
50: '#7a5caa',
500: '#3a1b85',
950: '#000000',
},
}SCSS
$custom: #3a1b85; $custom-light: #7a5caa; $custom-dark: #000000;
JSON
{
"hex": "#3a1b85",
"rgb": {
"r": 58,
"g": 27,
"b": 133
},
"hsl": {
"h": 257.547,
"s": 66.25,
"l": 31.373
},
"oklch": {
"l": 0.34193,
"c": 0.16202,
"h": 287.8
},
"luminance": 0.03377
}Semantic roles & 50–950 ramp
primary
#3A1B85
secondary
#96B844
accent
#E93FB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F