#3A168A#3A168A
#3A168A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.172 H 287.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #3A168A |
|---|---|
| RGB | rgb(58, 22, 138) |
| HSL | hsl(259, 73%, 31%) |
| HSV | hsv(259, 84%, 54%) |
| CMYK | cmyk(58%, 84.1%, 0%, 45.9%) |
| CIE-LAB | lab(21.24, 45.19, -57.16) |
| CIE-LCH | lch(21.24, 72.87, 308.33°) |
| OKLab | oklab(34.17% 0.0513 -0.1646) |
| OKLCH | oklch(34.17% 0.172 287.3) |
| XYZ | xyz(6.6179, 3.3080, 24.3296) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.86
Indigo
#4B0082
ΔE00 4.12
Royal
#0C1793
ΔE00 4.50
Indigo Blue
#3A18B1
ΔE00 5.49
Cobalt Blue
#030AA7
ΔE00 5.55
Darkblue
#00008B
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A168A #668A16
analogous
#162C8A #3A168A #74168A
triadic
#3A168A #8A3A16 #168A3A
tetradic
#3A168A #8A162C #668A16 #168A74
square
#3A168A #8A162C #668A16 #168A74
split-complementary
#3A168A #8A7416 #2C8A16
monochromatic
#0E0520 #240E55 #3A168A #501EBF #6E3BE0
Accessibility & contrast
On white
12.64
#3A168A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3A168A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A168A
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A168A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A168A | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#143A51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3a168a; /* rgb */ color: rgb(58, 22, 138); /* oklch */ color: oklch(34.2% 0.172 287.3);
Tailwind
colors: {
custom: {
50: '#7b59ad',
500: '#3a168a',
950: '#000000',
},
}SCSS
$custom: #3a168a; $custom-light: #7b59ad; $custom-dark: #000000;
JSON
{
"hex": "#3a168a",
"rgb": {
"r": 58,
"g": 22,
"b": 138
},
"hsl": {
"h": 258.621,
"s": 72.5,
"l": 31.373
},
"oklch": {
"l": 0.34174,
"c": 0.17238,
"h": 287.3
},
"luminance": 0.03308
}Semantic roles & 50–950 ramp
primary
#3A168A
secondary
#96BE3E
accent
#EF39B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F