#3A1FA0#3A1FA0
#3A1FA0 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.190 H 281.7°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1FA0 |
|---|---|
| RGB | rgb(58, 31, 160) |
| HSL | hsl(253, 68%, 37%) |
| HSV | hsv(253, 81%, 63%) |
| CMYK | cmyk(63.8%, 80.6%, 0%, 37.3%) |
| CIE-LAB | lab(25.00, 47.54, -64.52) |
| CIE-LCH | lch(25.00, 80.14, 306.38°) |
| OKLab | oklab(37.49% 0.0386 -0.1862) |
| OKLCH | oklch(37.49% 0.19 281.7) |
| XYZ | xyz(8.5781, 4.4169, 33.6514) |
| Luminance | 0.0442 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.44
Ultramarine
#2000B1
ΔE00 4.52
Royal
#0C1793
ΔE00 4.65
Cobalt Blue
#030AA7
ΔE00 4.69
Royal Blue (survey)
#0504AA
ΔE00 4.96
True Blue
#010FCC
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1FA0 #85A01F
analogous
#1F45A0 #3A1FA0 #7A1FA0
triadic
#3A1FA0 #A03A1F #1FA03A
tetradic
#3A1FA0 #A01F45 #85A01F #1FA07A
square
#3A1FA0 #A01F45 #85A01F #1FA07A
split-complementary
#3A1FA0 #A07A1F #45A01F
monochromatic
#150B39 #27156D #3A1FA0 #4D29D3 #765ADF
Accessibility & contrast
On white
11.15
#3A1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#3A1FA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1FA0
11.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1FA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1FA0 | 1.00 | 11.15 | 1.88 | 11.15 |
| #FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3a1fa0; /* rgb */ color: rgb(58, 31, 160); /* oklch */ color: oklch(37.5% 0.190 281.7);
Tailwind
colors: {
custom: {
50: '#7e5fbd',
500: '#3a1fa0',
950: '#000000',
},
}SCSS
$custom: #3a1fa0; $custom-light: #7e5fbd; $custom-dark: #000000;
JSON
{
"hex": "#3a1fa0",
"rgb": {
"r": 58,
"g": 31,
"b": 160
},
"hsl": {
"h": 252.558,
"s": 67.539,
"l": 37.451
},
"oklch": {
"l": 0.37488,
"c": 0.19012,
"h": 281.7
},
"luminance": 0.04418
}Semantic roles & 50–950 ramp
primary
#3A1FA0
secondary
#ADC358
accent
#EA3DC6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981