#3A1BA0#3A1BA0
#3A1BA0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.193 H 282.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1BA0 |
|---|---|
| RGB | rgb(58, 27, 160) |
| HSL | hsl(254, 71%, 37%) |
| HSV | hsv(254, 83%, 63%) |
| CMYK | cmyk(63.8%, 83.1%, 0%, 37.3%) |
| CIE-LAB | lab(24.39, 49.33, -65.54) |
| CIE-LCH | lch(24.39, 82.03, 306.97°) |
| OKLab | oklab(37.06% 0.0407 -0.1891) |
| OKLCH | oklch(37.06% 0.193 282.2) |
| XYZ | xyz(8.4800, 4.2208, 33.6187) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.27
Ultramarine
#2000B1
ΔE00 4.00
Cobalt Blue
#030AA7
ΔE00 4.27
Royal Blue (survey)
#0504AA
ΔE00 4.49
Royal
#0C1793
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1BA0 #81A01B
analogous
#1B3FA0 #3A1BA0 #7D1BA0
triadic
#3A1BA0 #A03A1B #1BA03A
tetradic
#3A1BA0 #A01B3F #81A01B #1BA07D
square
#3A1BA0 #A01B3F #81A01B #1BA07D
split-complementary
#3A1BA0 #A07D1B #3FA01B
monochromatic
#140937 #27126C #3A1BA0 #4D24D4 #7553E2
Accessibility & contrast
On white
11.39
#3A1BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3A1BA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1BA0
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1BA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1BA0 | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3a1ba0; /* rgb */ color: rgb(58, 27, 160); /* oklch */ color: oklch(37.1% 0.193 282.2);
Tailwind
colors: {
custom: {
50: '#7f5dbd',
500: '#3a1ba0',
950: '#000000',
},
}SCSS
$custom: #3a1ba0; $custom-light: #7f5dbd; $custom-dark: #000000;
JSON
{
"hex": "#3a1ba0",
"rgb": {
"r": 58,
"g": 27,
"b": 160
},
"hsl": {
"h": 253.985,
"s": 71.123,
"l": 36.667
},
"oklch": {
"l": 0.37062,
"c": 0.1934,
"h": 282.2
},
"luminance": 0.04221
}Semantic roles & 50–950 ramp
primary
#3A1BA0
secondary
#AAC552
accent
#EE3AC4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981