#3A1C87#3A1C87
#3A1C87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.163 H 287.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1C87 |
|---|---|
| RGB | rgb(58, 28, 135) |
| HSL | hsl(257, 66%, 32%) |
| HSV | hsv(257, 79%, 53%) |
| CMYK | cmyk(57%, 79.3%, 0%, 47.1%) |
| CIE-LAB | lab(21.87, 41.58, -54.24) |
| CIE-LCH | lch(21.87, 68.34, 307.47°) |
| OKLab | oklab(34.52% 0.0483 -0.1561) |
| OKLCH | oklch(34.52% 0.163 287.2) |
| XYZ | xyz(6.5320, 3.4790, 23.2443) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.81
Royal
#0C1793
ΔE00 4.74
Indigo
#4B0082
ΔE00 4.79
Midnight Blue
#191970
ΔE00 5.57
Indigo Blue
#3A18B1
ΔE00 5.94
Cobalt Blue
#030AA7
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1C87 #69871C
analogous
#1C3487 #3A1C87 #6F1C87
triadic
#3A1C87 #873A1C #1C873A
tetradic
#3A1C87 #871C34 #69871C #1C876F
square
#3A1C87 #871C34 #69871C #1C876F
split-complementary
#3A1C87 #876F1C #34871C
monochromatic
#0E0722 #241154 #3A1C87 #5027BA #6E45D8
Accessibility & contrast
On white
12.38
#3A1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#3A1C87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1C87
12.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1C87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1C87 | 1.00 | 12.38 | 1.70 | 12.38 |
| #FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#183B51
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3a1c87; /* rgb */ color: rgb(58, 28, 135); /* oklch */ color: oklch(34.5% 0.163 287.2);
Tailwind
colors: {
custom: {
50: '#7a5cab',
500: '#3a1c87',
950: '#000000',
},
}SCSS
$custom: #3a1c87; $custom-light: #7a5cab; $custom-dark: #000000;
JSON
{
"hex": "#3a1c87",
"rgb": {
"r": 58,
"g": 28,
"b": 135
},
"hsl": {
"h": 256.822,
"s": 65.644,
"l": 31.961
},
"oklch": {
"l": 0.34517,
"c": 0.16341,
"h": 287.2
},
"luminance": 0.03479
}Semantic roles & 50–950 ramp
primary
#3A1C87
secondary
#99BA45
accent
#E93FB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F