#3A167F#3A167F
#3A167F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.160 H 290.2°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).
Color values
| HEX | #3A167F |
|---|---|
| RGB | rgb(58, 22, 127) |
| HSL | hsl(261, 70%, 29%) |
| HSV | hsv(261, 83%, 50%) |
| CMYK | cmyk(54.3%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(20.07, 42.09, -52.16) |
| CIE-LCH | lch(20.07, 67.02, 308.90°) |
| OKLab | oklab(33.01% 0.0552 -0.15) |
| OKLCH | oklch(33.01% 0.16 290.2) |
| XYZ | xyz(5.8615, 3.0054, 20.3458) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.71
Indigo
#4B0082
ΔE00 3.81
Midnight Blue
#191970
ΔE00 5.31
Royal
#0C1793
ΔE00 5.48
Royal Purple (survey)
#4B006E
ΔE00 5.60
Darkblue
#00008B
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A167F #5B7F16
analogous
#16277F #3A167F #6F167F
triadic
#3A167F #7F3A16 #167F3A
tetradic
#3A167F #7F1627 #5B7F16 #167F6F
square
#3A167F #7F1627 #5B7F16 #167F6F
split-complementary
#3A167F #7F6F16 #277F16
monochromatic
#0C051A #220D4B #3A167F #521FB3 #6D34DC
Accessibility & contrast
On white
13.12
#3A167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3A167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A167F
13.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A167F | 1.00 | 13.12 | 1.60 | 13.12 |
| #FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#20354B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3a167f; /* rgb */ color: rgb(58, 22, 127); /* oklch */ color: oklch(33.0% 0.160 290.2);
Tailwind
colors: {
custom: {
50: '#7959a5',
500: '#3a167f',
950: '#000000',
},
}SCSS
$custom: #3a167f; $custom-light: #7959a5; $custom-dark: #000000;
JSON
{
"hex": "#3a167f",
"rgb": {
"r": 58,
"g": 22,
"b": 127
},
"hsl": {
"h": 260.571,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.33014,
"c": 0.15981,
"h": 290.2
},
"luminance": 0.03006
}Semantic roles & 50–950 ramp
primary
#3A167F
secondary
#8BB43D
accent
#ED3BB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F