#3A197F#3A197F
#3A197F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.157 H 289.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #3A197F |
|---|---|
| RGB | rgb(58, 25, 127) |
| HSL | hsl(259, 67%, 30%) |
| HSV | hsv(259, 80%, 50%) |
| CMYK | cmyk(54.3%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(20.54, 40.70, -51.37) |
| CIE-LCH | lch(20.54, 65.54, 308.39°) |
| OKLab | oklab(33.35% 0.053 -0.1477) |
| OKLCH | oklch(33.35% 0.157 289.7) |
| XYZ | xyz(5.9222, 3.1268, 20.3660) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.27
Indigo
#4B0082
ΔE00 4.22
Midnight Blue
#191970
ΔE00 5.15
Royal
#0C1793
ΔE00 5.47
Royal Purple (survey)
#4B006E
ΔE00 5.92
Darkblue
#00008B
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A197F #5E7F19
analogous
#192B7F #3A197F #6D197F
triadic
#3A197F #7F3A19 #197F3A
tetradic
#3A197F #7F192B #5E7F19 #197F6D
square
#3A197F #7F192B #5E7F19 #197F6D
split-complementary
#3A197F #7F6D19 #2B7F19
monochromatic
#0C051A #230F4C #3A197F #5123B2 #6D3AD8
Accessibility & contrast
On white
12.92
#3A197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3A197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A197F
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A197F | 1.00 | 12.92 | 1.63 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#20364C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a197f; /* rgb */ color: rgb(58, 25, 127); /* oklch */ color: oklch(33.3% 0.157 289.7);
Tailwind
colors: {
custom: {
50: '#795aa5',
500: '#3a197f',
950: '#000000',
},
}SCSS
$custom: #3a197f; $custom-light: #795aa5; $custom-dark: #000000;
JSON
{
"hex": "#3a197f",
"rgb": {
"r": 58,
"g": 25,
"b": 127
},
"hsl": {
"h": 259.412,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.33347,
"c": 0.15691,
"h": 289.7
},
"luminance": 0.03127
}Semantic roles & 50–950 ramp
primary
#3A197F
secondary
#8EB341
accent
#EA3EB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F