#3A197E#3A197E
#3A197E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.156 H 290.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3A197E |
|---|---|
| RGB | rgb(58, 25, 126) |
| HSL | hsl(260, 67%, 30%) |
| HSV | hsv(260, 80%, 49%) |
| CMYK | cmyk(54%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.44, 40.41, -50.90) |
| CIE-LCH | lch(20.44, 64.99, 308.45°) |
| OKLab | oklab(33.25% 0.0533 -0.1463) |
| OKLCH | oklch(33.25% 0.156 290) |
| XYZ | xyz(5.8574, 3.1009, 20.0245) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.31
Indigo
#4B0082
ΔE00 4.24
Midnight Blue
#191970
ΔE00 5.11
Royal
#0C1793
ΔE00 5.59
Royal Purple (survey)
#4B006E
ΔE00 5.83
Darkblue
#00008B
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A197E #5D7E19
analogous
#192B7E #3A197E #6D197E
triadic
#3A197E #7E3A19 #197E3A
tetradic
#3A197E #7E192B #5D7E19 #197E6D
square
#3A197E #7E192B #5D7E19 #197E6D
split-complementary
#3A197E #7E6D19 #2B7E19
monochromatic
#0C051A #220F4B #3A197E #5223B1 #6D3AD8
Accessibility & contrast
On white
12.96
#3A197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3A197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A197E
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A197E | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#21364B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a197e; /* rgb */ color: rgb(58, 25, 126); /* oklch */ color: oklch(33.2% 0.156 290.0);
Tailwind
colors: {
custom: {
50: '#785aa4',
500: '#3a197e',
950: '#000000',
},
}SCSS
$custom: #3a197e; $custom-light: #785aa4; $custom-dark: #000000;
JSON
{
"hex": "#3a197e",
"rgb": {
"r": 58,
"g": 25,
"b": 126
},
"hsl": {
"h": 259.604,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.33245,
"c": 0.15573,
"h": 290
},
"luminance": 0.03101
}Semantic roles & 50–950 ramp
primary
#3A197E
secondary
#8DB241
accent
#EA3EB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F