#3B168E#3B168E
#3B168E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.177 H 286.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #3B168E |
|---|---|
| RGB | rgb(59, 22, 142) |
| HSL | hsl(259, 73%, 32%) |
| HSV | hsv(259, 85%, 56%) |
| CMYK | cmyk(58.5%, 84.5%, 0%, 44.3%) |
| CIE-LAB | lab(21.79, 46.43, -58.75) |
| CIE-LCH | lch(21.79, 74.88, 308.32°) |
| OKLab | oklab(34.71% 0.0514 -0.1692) |
| OKLCH | oklch(34.71% 0.177 286.9) |
| XYZ | xyz(6.9716, 3.4562, 25.8857) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.16
Indigo
#4B0082
ΔE00 4.27
Royal
#0C1793
ΔE00 4.44
Indigo Blue
#3A18B1
ΔE00 4.90
Cobalt Blue
#030AA7
ΔE00 5.21
Ultramarine
#2000B1
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B168E #698E16
analogous
#162D8E #3B168E #77168E
triadic
#3B168E #8E3B16 #168E3B
tetradic
#3B168E #8E162D #698E16 #168E77
square
#3B168E #8E162D #698E16 #168E77
split-complementary
#3B168E #8E7716 #2D8E16
monochromatic
#0F0624 #250E59 #3B168E #511EC3 #703DE1
Accessibility & contrast
On white
12.42
#3B168E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3B168E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B168E
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B168E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B168E | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#123B54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3b168e; /* rgb */ color: rgb(59, 22, 142); /* oklch */ color: oklch(34.7% 0.177 286.9);
Tailwind
colors: {
custom: {
50: '#7c5ab0',
500: '#3b168e',
950: '#000000',
},
}SCSS
$custom: #3b168e; $custom-light: #7c5ab0; $custom-dark: #000000;
JSON
{
"hex": "#3b168e",
"rgb": {
"r": 59,
"g": 22,
"b": 142
},
"hsl": {
"h": 258.5,
"s": 73.171,
"l": 32.157
},
"oklch": {
"l": 0.34707,
"c": 0.17684,
"h": 286.9
},
"luminance": 0.03457
}Semantic roles & 50–950 ramp
primary
#3B168E
secondary
#99C13F
accent
#F038B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980