#3A167B#3A167B
#3A167B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.155 H 291.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).
Color values
| HEX | #3A167B |
|---|---|
| RGB | rgb(58, 22, 123) |
| HSL | hsl(261, 70%, 28%) |
| HSV | hsv(261, 82%, 48%) |
| CMYK | cmyk(52.8%, 82.1%, 0%, 51.8%) |
| CIE-LAB | lab(19.65, 40.96, -50.29) |
| CIE-LCH | lch(19.65, 64.86, 309.16°) |
| OKLab | oklab(32.6% 0.0566 -0.1445) |
| OKLCH | oklch(32.6% 0.155 291.4) |
| XYZ | xyz(5.6060, 2.9032, 19.0000) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.95
Indigo
#4B0082
ΔE00 3.88
Midnight Blue
#191970
ΔE00 5.18
Royal Purple (survey)
#4B006E
ΔE00 5.24
Royal
#0C1793
ΔE00 5.96
Navy
#000080
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A167B #577B16
analogous
#16247B #3A167B #6C167B
triadic
#3A167B #7B3A16 #167B3A
tetradic
#3A167B #7B1624 #577B16 #167B6C
square
#3A167B #7B1624 #577B16 #167B6C
split-complementary
#3A167B #7B6C16 #247B16
monochromatic
#0C051A #220D47 #3A167B #521FAF #6D31DA
Accessibility & contrast
On white
13.29
#3A167B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#3A167B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A167B
13.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A167B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A167B | 1.00 | 13.29 | 1.58 | 13.29 |
| #FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#233349
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3a167b; /* rgb */ color: rgb(58, 22, 123); /* oklch */ color: oklch(32.6% 0.155 291.4);
Tailwind
colors: {
custom: {
50: '#7858a2',
500: '#3a167b',
950: '#000000',
},
}SCSS
$custom: #3a167b; $custom-light: #7858a2; $custom-dark: #000000;
JSON
{
"hex": "#3a167b",
"rgb": {
"r": 58,
"g": 22,
"b": 123
},
"hsl": {
"h": 261.386,
"s": 69.655,
"l": 28.431
},
"oklch": {
"l": 0.32602,
"c": 0.1552,
"h": 291.4
},
"luminance": 0.02903
}Semantic roles & 50–950 ramp
primary
#3A167B
secondary
#87B03D
accent
#EC3BAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F