#3A197B#3A197B
#3A197B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.152 H 290.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #3A197B |
|---|---|
| RGB | rgb(58, 25, 123) |
| HSL | hsl(260, 66%, 29%) |
| HSV | hsv(260, 80%, 48%) |
| CMYK | cmyk(52.8%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(20.14, 39.54, -49.49) |
| CIE-LCH | lch(20.14, 63.35, 308.63°) |
| OKLab | oklab(32.94% 0.0543 -0.1422) |
| OKLCH | oklch(32.94% 0.152 290.9) |
| XYZ | xyz(5.6667, 3.0246, 19.0203) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.49
Indigo
#4B0082
ΔE00 4.31
Midnight Blue
#191970
ΔE00 5.02
Royal Purple (survey)
#4B006E
ΔE00 5.59
Royal
#0C1793
ΔE00 5.96
Navy
#000080
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A197B #5A7B19
analogous
#19297B #3A197B #6B197B
triadic
#3A197B #7B3A19 #197B3A
tetradic
#3A197B #7B1929 #5A7B19 #197B6B
square
#3A197B #7B1929 #5A7B19 #197B6B
split-complementary
#3A197B #7B6B19 #297B19
monochromatic
#0C0519 #220F48 #3A197B #5223AE #6D38D7
Accessibility & contrast
On white
13.08
#3A197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3A197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A197B
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A197B | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#233449
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a197b; /* rgb */ color: rgb(58, 25, 123); /* oklch */ color: oklch(32.9% 0.152 290.9);
Tailwind
colors: {
custom: {
50: '#785aa2',
500: '#3a197b',
950: '#000000',
},
}SCSS
$custom: #3a197b; $custom-light: #785aa2; $custom-dark: #000000;
JSON
{
"hex": "#3a197b",
"rgb": {
"r": 58,
"g": 25,
"b": 123
},
"hsl": {
"h": 260.204,
"s": 66.216,
"l": 29.02
},
"oklch": {
"l": 0.32943,
"c": 0.15218,
"h": 290.9
},
"luminance": 0.03025
}Semantic roles & 50–950 ramp
primary
#3A197B
secondary
#8AAF40
accent
#E93FB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F