#3A1C83#3A1C83
#3A1C83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.159 H 288.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1C83 |
|---|---|
| RGB | rgb(58, 28, 131) |
| HSL | hsl(257, 65%, 31%) |
| HSV | hsv(257, 79%, 51%) |
| CMYK | cmyk(55.7%, 78.6%, 0%, 48.6%) |
| CIE-LAB | lab(21.46, 40.40, -52.39) |
| CIE-LCH | lch(21.46, 66.16, 307.63°) |
| OKLab | oklab(34.11% 0.0495 -0.1507) |
| OKLCH | oklch(34.11% 0.159 288.2) |
| XYZ | xyz(6.2557, 3.3684, 21.7889) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.79
Indigo
#4B0082
ΔE00 4.71
Royal
#0C1793
ΔE00 5.10
Midnight Blue
#191970
ΔE00 5.27
Darkblue
#00008B
ΔE00 6.51
Indigo Blue
#3A18B1
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1C83 #65831C
analogous
#1C3183 #3A1C83 #6D1C83
triadic
#3A1C83 #833A1C #1C833A
tetradic
#3A1C83 #831C31 #65831C #1C836D
square
#3A1C83 #831C31 #65831C #1C836D
split-complementary
#3A1C83 #836D1C #31831C
monochromatic
#0D061E #241151 #3A1C83 #5027B5 #6E43D7
Accessibility & contrast
On white
12.55
#3A1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3A1C83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1C83
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1C83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1C83 | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#1C394F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3a1c83; /* rgb */ color: rgb(58, 28, 131); /* oklch */ color: oklch(34.1% 0.159 288.2);
Tailwind
colors: {
custom: {
50: '#795ca8',
500: '#3a1c83',
950: '#000000',
},
}SCSS
$custom: #3a1c83; $custom-light: #795ca8; $custom-dark: #000000;
JSON
{
"hex": "#3a1c83",
"rgb": {
"r": 58,
"g": 28,
"b": 131
},
"hsl": {
"h": 257.476,
"s": 64.78,
"l": 31.176
},
"oklch": {
"l": 0.34111,
"c": 0.15862,
"h": 288.2
},
"luminance": 0.03369
}Semantic roles & 50–950 ramp
primary
#3A1C83
secondary
#95B645
accent
#E840B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F