#3A1F83#3A1F83
#3A1F83 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.155 H 287.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1F83 |
|---|---|
| RGB | rgb(58, 31, 131) |
| HSL | hsl(256, 62%, 32%) |
| HSV | hsv(256, 76%, 51%) |
| CMYK | cmyk(55.7%, 76.3%, 0%, 48.6%) |
| CIE-LAB | lab(22.01, 38.84, -51.49) |
| CIE-LCH | lch(22.01, 64.50, 307.03°) |
| OKLab | oklab(34.49% 0.047 -0.1481) |
| OKLCH | oklch(34.49% 0.155 287.6) |
| XYZ | xyz(6.3304, 3.5179, 21.8138) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.45
Royal
#0C1793
ΔE00 5.23
Midnight Blue
#191970
ΔE00 5.24
Indigo
#4B0082
ΔE00 5.26
Indigo Blue
#3A18B1
ΔE00 6.67
Darkblue
#00008B
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1F83 #68831F
analogous
#1F3683 #3A1F83 #6C1F83
triadic
#3A1F83 #833A1F #1F833A
tetradic
#3A1F83 #831F36 #68831F #1F836C
square
#3A1F83 #831F36 #68831F #1F836C
split-complementary
#3A1F83 #836C1F #36831F
monochromatic
#0E0820 #241352 #3A1F83 #502BB4 #6E49D4
Accessibility & contrast
On white
12.33
#3A1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#3A1F83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1F83
12.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1F83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1F83 | 1.00 | 12.33 | 1.70 | 12.33 |
| #FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#1C3A4F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3a1f83; /* rgb */ color: rgb(58, 31, 131); /* oklch */ color: oklch(34.5% 0.155 287.6);
Tailwind
colors: {
custom: {
50: '#795ea8',
500: '#3a1f83',
950: '#000000',
},
}SCSS
$custom: #3a1f83; $custom-light: #795ea8; $custom-dark: #000000;
JSON
{
"hex": "#3a1f83",
"rgb": {
"r": 58,
"g": 31,
"b": 131
},
"hsl": {
"h": 256.2,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.34494,
"c": 0.15539,
"h": 287.6
},
"luminance": 0.03518
}Semantic roles & 50–950 ramp
primary
#3A1F83
secondary
#98B648
accent
#E543B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F