#3A197C#3A197C
#3A197C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.153 H 290.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).
Color values
| HEX | #3A197C |
|---|---|
| RGB | rgb(58, 25, 124) |
| HSL | hsl(260, 66%, 29%) |
| HSV | hsv(260, 80%, 49%) |
| CMYK | cmyk(53.2%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(20.24, 39.83, -49.96) |
| CIE-LCH | lch(20.24, 63.90, 308.56°) |
| OKLab | oklab(33.04% 0.0539 -0.1436) |
| OKLCH | oklch(33.04% 0.153 290.6) |
| XYZ | xyz(5.7296, 3.0498, 19.3516) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.43
Indigo
#4B0082
ΔE00 4.28
Midnight Blue
#191970
ΔE00 5.04
Royal Purple (survey)
#4B006E
ΔE00 5.67
Royal
#0C1793
ΔE00 5.83
Darkblue
#00008B
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A197C #5B7C19
analogous
#192A7C #3A197C #6C197C
triadic
#3A197C #7C3A19 #197C3A
tetradic
#3A197C #7C192A #5B7C19 #197C6C
square
#3A197C #7C192A #5B7C19 #197C6C
split-complementary
#3A197C #7C6C19 #2A7C19
monochromatic
#0C0519 #220F49 #3A197C #5223AF #6D38D7
Accessibility & contrast
On white
13.04
#3A197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3A197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A197C
13.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A197C | 1.00 | 13.04 | 1.61 | 13.04 |
| #FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#22354A
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a197c; /* rgb */ color: rgb(58, 25, 124); /* oklch */ color: oklch(33.0% 0.153 290.6);
Tailwind
colors: {
custom: {
50: '#785aa3',
500: '#3a197c',
950: '#000000',
},
}SCSS
$custom: #3a197c; $custom-light: #785aa3; $custom-dark: #000000;
JSON
{
"hex": "#3a197c",
"rgb": {
"r": 58,
"g": 25,
"b": 124
},
"hsl": {
"h": 260,
"s": 66.443,
"l": 29.216
},
"oklch": {
"l": 0.33044,
"c": 0.15337,
"h": 290.6
},
"luminance": 0.0305
}Semantic roles & 50–950 ramp
primary
#3A197C
secondary
#8BB040
accent
#E93EB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F