#3A147F#3A147F
#3A147F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.162 H 290.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).
Color values
| HEX | #3A147F |
|---|---|
| RGB | rgb(58, 20, 127) |
| HSL | hsl(261, 73%, 29%) |
| HSV | hsv(261, 84%, 50%) |
| CMYK | cmyk(54.3%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(19.77, 42.95, -52.65) |
| CIE-LCH | lch(19.77, 67.94, 309.21°) |
| OKLab | oklab(32.81% 0.0566 -0.1514) |
| OKLCH | oklch(32.81% 0.162 290.5) |
| XYZ | xyz(5.8247, 2.9319, 20.3336) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.36
Indigo
#4B0082
ΔE00 3.57
Royal Purple (survey)
#4B006E
ΔE00 5.43
Midnight Blue
#191970
ΔE00 5.44
Royal
#0C1793
ΔE00 5.51
Darkblue
#00008B
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A147F #597F14
analogous
#14247F #3A147F #70147F
triadic
#3A147F #7F3A14 #147F3A
tetradic
#3A147F #7F1424 #597F14 #147F70
square
#3A147F #7F1424 #597F14 #147F70
split-complementary
#3A147F #7F7014 #247F14
monochromatic
#0C041A #220C4A #3A147F #521CB4 #6D2FDE
Accessibility & contrast
On white
13.24
#3A147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#3A147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A147F
13.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A147F | 1.00 | 13.24 | 1.59 | 13.24 |
| #FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#20344B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3a147f; /* rgb */ color: rgb(58, 20, 127); /* oklch */ color: oklch(32.8% 0.162 290.5);
Tailwind
colors: {
custom: {
50: '#7958a5',
500: '#3a147f',
950: '#000000',
},
}SCSS
$custom: #3a147f; $custom-light: #7958a5; $custom-dark: #000000;
JSON
{
"hex": "#3a147f",
"rgb": {
"r": 58,
"g": 20,
"b": 127
},
"hsl": {
"h": 261.308,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.32809,
"c": 0.16161,
"h": 290.5
},
"luminance": 0.02932
}Semantic roles & 50–950 ramp
primary
#3A147F
secondary
#89B43B
accent
#EF38AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F