#3A1C8A#3A1C8A
#3A1C8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.167 H 286.5°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1C8A |
|---|---|
| RGB | rgb(58, 28, 138) |
| HSL | hsl(256, 66%, 33%) |
| HSV | hsv(256, 80%, 54%) |
| CMYK | cmyk(58%, 79.7%, 0%, 45.9%) |
| CIE-LAB | lab(22.18, 42.47, -55.61) |
| CIE-LCH | lch(22.18, 69.97, 307.36°) |
| OKLab | oklab(34.83% 0.0473 -0.1601) |
| OKLCH | oklch(34.83% 0.167 286.5) |
| XYZ | xyz(6.7462, 3.5646, 24.3724) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.90
Royal
#0C1793
ΔE00 4.53
Indigo
#4B0082
ΔE00 4.90
Indigo Blue
#3A18B1
ΔE00 5.48
Midnight Blue
#191970
ΔE00 5.83
Cobalt Blue
#030AA7
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1C8A #6C8A1C
analogous
#1C358A #3A1C8A #711C8A
triadic
#3A1C8A #8A3A1C #1C8A3A
tetradic
#3A1C8A #8A1C35 #6C8A1C #1C8A71
square
#3A1C8A #8A1C35 #6C8A1C #1C8A71
split-complementary
#3A1C8A #8A711C #358A1C
monochromatic
#0F0724 #251257 #3A1C8A #4F26BD #6F47DA
Accessibility & contrast
On white
12.26
#3A1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3A1C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1C8A
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1C8A | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#143C53
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3a1c8a; /* rgb */ color: rgb(58, 28, 138); /* oklch */ color: oklch(34.8% 0.167 286.5);
Tailwind
colors: {
custom: {
50: '#7a5cad',
500: '#3a1c8a',
950: '#000000',
},
}SCSS
$custom: #3a1c8a; $custom-light: #7a5cad; $custom-dark: #000000;
JSON
{
"hex": "#3a1c8a",
"rgb": {
"r": 58,
"g": 28,
"b": 138
},
"hsl": {
"h": 256.364,
"s": 66.265,
"l": 32.549
},
"oklch": {
"l": 0.34825,
"c": 0.16698,
"h": 286.5
},
"luminance": 0.03565
}Semantic roles & 50–950 ramp
primary
#3A1C8A
secondary
#9BBB46
accent
#E93FBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F