#3A1A89#3A1A89
#3A1A89 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.168 H 287.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1A89 |
|---|---|
| RGB | rgb(58, 26, 137) |
| HSL | hsl(257, 68%, 32%) |
| HSV | hsv(257, 81%, 54%) |
| CMYK | cmyk(57.7%, 81%, 0%, 46.3%) |
| CIE-LAB | lab(21.74, 43.13, -55.70) |
| CIE-LCH | lch(21.74, 70.45, 307.75°) |
| OKLab | oklab(34.49% 0.0491 -0.1604) |
| OKLCH | oklch(34.49% 0.168 287) |
| XYZ | xyz(6.6283, 3.4441, 23.9776) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.48
Royal
#0C1793
ΔE00 4.55
Indigo
#4B0082
ΔE00 4.56
Indigo Blue
#3A18B1
ΔE00 5.61
Midnight Blue
#191970
ΔE00 5.79
Cobalt Blue
#030AA7
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1A89 #69891A
analogous
#1A3289 #3A1A89 #721A89
triadic
#3A1A89 #893A1A #1A893A
tetradic
#3A1A89 #891A32 #69891A #1A8972
square
#3A1A89 #891A32 #69891A #1A8972
split-complementary
#3A1A89 #89721A #32891A
monochromatic
#0E0622 #241056 #3A1A89 #5024BC #6E42DB
Accessibility & contrast
On white
12.43
#3A1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3A1A89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1A89
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1A89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1A89 | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#153B52
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3a1a89; /* rgb */ color: rgb(58, 26, 137); /* oklch */ color: oklch(34.5% 0.168 287.0);
Tailwind
colors: {
custom: {
50: '#7a5bad',
500: '#3a1a89',
950: '#000000',
},
}SCSS
$custom: #3a1a89; $custom-light: #7a5bad; $custom-dark: #000000;
JSON
{
"hex": "#3a1a89",
"rgb": {
"r": 58,
"g": 26,
"b": 137
},
"hsl": {
"h": 257.297,
"s": 68.098,
"l": 31.961
},
"oklch": {
"l": 0.34491,
"c": 0.1677,
"h": 287
},
"luminance": 0.03444
}Semantic roles & 50–950 ramp
primary
#3A1A89
secondary
#99BC43
accent
#EB3DB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F