#3A1F86#3A1F86
#3A1F86 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.159 H 286.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1F86 |
|---|---|
| RGB | rgb(58, 31, 134) |
| HSL | hsl(256, 62%, 32%) |
| HSV | hsv(256, 77%, 53%) |
| CMYK | cmyk(56.7%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(22.30, 39.75, -52.90) |
| CIE-LCH | lch(22.30, 66.17, 306.92°) |
| OKLab | oklab(34.79% 0.0462 -0.1522) |
| OKLCH | oklch(34.79% 0.159 286.9) |
| XYZ | xyz(6.5367, 3.6004, 22.9001) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.44
Royal
#0C1793
ΔE00 4.96
Indigo
#4B0082
ΔE00 5.29
Midnight Blue
#191970
ΔE00 5.46
Indigo Blue
#3A18B1
ΔE00 6.19
Cobalt Blue
#030AA7
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1F86 #6B861F
analogous
#1F3886 #3A1F86 #6D1F86
triadic
#3A1F86 #863A1F #1F863A
tetradic
#3A1F86 #861F38 #6B861F #1F866D
square
#3A1F86 #861F38 #6B861F #1F866D
split-complementary
#3A1F86 #866D1F #38861F
monochromatic
#0F0823 #241454 #3A1F86 #502AB8 #6F4AD5
Accessibility & contrast
On white
12.21
#3A1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3A1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1F86
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1F86 | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#193C51
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3a1f86; /* rgb */ color: rgb(58, 31, 134); /* oklch */ color: oklch(34.8% 0.159 286.9);
Tailwind
colors: {
custom: {
50: '#795eaa',
500: '#3a1f86',
950: '#000000',
},
}SCSS
$custom: #3a1f86; $custom-light: #795eaa; $custom-dark: #000000;
JSON
{
"hex": "#3a1f86",
"rgb": {
"r": 58,
"g": 31,
"b": 134
},
"hsl": {
"h": 255.728,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.34792,
"c": 0.15907,
"h": 286.9
},
"luminance": 0.03601
}Semantic roles & 50–950 ramp
primary
#3A1F86
secondary
#9BB849
accent
#E542BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F