#3A2191#3A2191
#3A2191 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.170 H 284.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2191 |
|---|---|
| RGB | rgb(58, 33, 145) |
| HSL | hsl(253, 63%, 35%) |
| HSV | hsv(253, 77%, 57%) |
| CMYK | cmyk(60%, 77.2%, 0%, 43.1%) |
| CIE-LAB | lab(23.77, 42.04, -57.34) |
| CIE-LCH | lch(23.77, 71.10, 306.25°) |
| OKLab | oklab(36.16% 0.0417 -0.1652) |
| OKLCH | oklch(36.16% 0.17 284.2) |
| XYZ | xyz(7.3980, 4.0311, 27.1708) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.49
Indigo Blue
#3A18B1
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 5.22
Cobalt Blue
#030AA7
ΔE00 5.73
Indigo
#4B0082
ΔE00 6.06
Ultramarine
#2000B1
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2191 #789121
analogous
#214091 #3A2191 #722191
triadic
#3A2191 #913A21 #21913A
tetradic
#3A2191 #912140 #789121 #219172
square
#3A2191 #912140 #789121 #219172
split-complementary
#3A2191 #917221 #409121
monochromatic
#120A2D #26165F #3A2191 #4E2CC3 #7254D8
Accessibility & contrast
On white
11.63
#3A2191 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3A2191 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2191
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2191 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2191 | 1.00 | 11.63 | 1.81 | 11.63 |
| #FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#044158
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3a2191; /* rgb */ color: rgb(58, 33, 145); /* oklch */ color: oklch(36.2% 0.170 284.2);
Tailwind
colors: {
custom: {
50: '#7b60b2',
500: '#3a2191',
950: '#000000',
},
}SCSS
$custom: #3a2191; $custom-light: #7b60b2; $custom-dark: #000000;
JSON
{
"hex": "#3a2191",
"rgb": {
"r": 58,
"g": 33,
"b": 145
},
"hsl": {
"h": 253.393,
"s": 62.921,
"l": 34.902
},
"oklch": {
"l": 0.36159,
"c": 0.17041,
"h": 284.2
},
"luminance": 0.04032
}Semantic roles & 50–950 ramp
primary
#3A2191
secondary
#A4BC52
accent
#E642C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980