#3A177E#3A177E
#3A177E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.158 H 290.3°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #3A177E |
|---|---|
| RGB | rgb(58, 23, 126) |
| HSL | hsl(260, 69%, 29%) |
| HSV | hsv(260, 82%, 49%) |
| CMYK | cmyk(54%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(20.12, 41.35, -51.44) |
| CIE-LCH | lch(20.12, 66.00, 308.80°) |
| OKLab | oklab(33.02% 0.0548 -0.1479) |
| OKLCH | oklch(33.02% 0.158 290.3) |
| XYZ | xyz(5.8161, 3.0184, 20.0108) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.93
Indigo
#4B0082
ΔE00 3.95
Midnight Blue
#191970
ΔE00 5.21
Royal
#0C1793
ΔE00 5.58
Royal Purple (survey)
#4B006E
ΔE00 5.61
Darkblue
#00008B
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A177E #5B7E17
analogous
#17287E #3A177E #6E177E
triadic
#3A177E #7E3A17 #177E3A
tetradic
#3A177E #7E1728 #5B7E17 #177E6E
square
#3A177E #7E1728 #5B7E17 #177E6E
split-complementary
#3A177E #7E6E17 #287E17
monochromatic
#0C051A #220E4A #3A177E #5220B2 #6D35DA
Accessibility & contrast
On white
13.09
#3A177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3A177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A177E
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A177E | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#21354B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a177e; /* rgb */ color: rgb(58, 23, 126); /* oklch */ color: oklch(33.0% 0.158 290.3);
Tailwind
colors: {
custom: {
50: '#7959a4',
500: '#3a177e',
950: '#000000',
},
}SCSS
$custom: #3a177e; $custom-light: #7959a4; $custom-dark: #000000;
JSON
{
"hex": "#3a177e",
"rgb": {
"r": 58,
"g": 23,
"b": 126
},
"hsl": {
"h": 260.388,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.33018,
"c": 0.15771,
"h": 290.3
},
"luminance": 0.03019
}Semantic roles & 50–950 ramp
primary
#3A177E
secondary
#8BB33E
accent
#EC3CB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F