#3A1E83#3A1E83
#3A1E83 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.156 H 287.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1E83 |
|---|---|
| RGB | rgb(58, 30, 131) |
| HSL | hsl(257, 63%, 32%) |
| HSV | hsv(257, 77%, 51%) |
| CMYK | cmyk(55.7%, 77.1%, 0%, 48.6%) |
| CIE-LAB | lab(21.82, 39.37, -51.80) |
| CIE-LCH | lch(21.82, 65.06, 307.24°) |
| OKLab | oklab(34.36% 0.0478 -0.149) |
| OKLCH | oklch(34.36% 0.156 287.8) |
| XYZ | xyz(6.3047, 3.4665, 21.8052) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.22
Indigo
#4B0082
ΔE00 5.07
Royal
#0C1793
ΔE00 5.18
Midnight Blue
#191970
ΔE00 5.24
Indigo Blue
#3A18B1
ΔE00 6.63
Darkblue
#00008B
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1E83 #67831E
analogous
#1E3583 #3A1E83 #6D1E83
triadic
#3A1E83 #833A1E #1E833A
tetradic
#3A1E83 #831E35 #67831E #1E836D
square
#3A1E83 #831E35 #67831E #1E836D
split-complementary
#3A1E83 #836D1E #35831E
monochromatic
#0E071F #241351 #3A1E83 #5029B5 #6E47D5
Accessibility & contrast
On white
12.40
#3A1E83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3A1E83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1E83
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1E83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1E83 | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#1C3A4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3a1e83; /* rgb */ color: rgb(58, 30, 131); /* oklch */ color: oklch(34.4% 0.156 287.8);
Tailwind
colors: {
custom: {
50: '#795da8',
500: '#3a1e83',
950: '#000000',
},
}SCSS
$custom: #3a1e83; $custom-light: #795da8; $custom-dark: #000000;
JSON
{
"hex": "#3a1e83",
"rgb": {
"r": 58,
"g": 30,
"b": 131
},
"hsl": {
"h": 256.634,
"s": 62.733,
"l": 31.569
},
"oklch": {
"l": 0.34363,
"c": 0.15648,
"h": 287.8
},
"luminance": 0.03467
}Semantic roles & 50–950 ramp
primary
#3A1E83
secondary
#97B647
accent
#E642B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F