#3B167F#3B167F
#3B167F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.160 H 290.8°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).
Color values
| HEX | #3B167F |
|---|---|
| RGB | rgb(59, 22, 127) |
| HSL | hsl(261, 70%, 29%) |
| HSV | hsv(261, 83%, 50%) |
| CMYK | cmyk(53.5%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(20.19, 42.22, -51.96) |
| CIE-LCH | lch(20.19, 66.95, 309.10°) |
| OKLab | oklab(33.13% 0.0569 -0.1493) |
| OKLCH | oklch(33.13% 0.16 290.8) |
| XYZ | xyz(5.9202, 3.0357, 20.3486) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.72
Indigo
#4B0082
ΔE00 3.68
Midnight Blue
#191970
ΔE00 5.46
Royal Purple (survey)
#4B006E
ΔE00 5.48
Royal
#0C1793
ΔE00 5.62
Darkblue
#00008B
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B167F #5A7F16
analogous
#16267F #3B167F #70167F
triadic
#3B167F #7F3B16 #167F3B
tetradic
#3B167F #7F1626 #5A7F16 #167F70
square
#3B167F #7F1626 #5A7F16 #167F70
split-complementary
#3B167F #7F7016 #267F16
monochromatic
#0C051A #230D4B #3B167F #531FB3 #6F34DC
Accessibility & contrast
On white
13.07
#3B167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3B167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B167F
13.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B167F | 1.00 | 13.07 | 1.61 | 13.07 |
| #FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#22354B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3b167f; /* rgb */ color: rgb(59, 22, 127); /* oklch */ color: oklch(33.1% 0.160 290.8);
Tailwind
colors: {
custom: {
50: '#7959a5',
500: '#3b167f',
950: '#000000',
},
}SCSS
$custom: #3b167f; $custom-light: #7959a5; $custom-dark: #000000;
JSON
{
"hex": "#3b167f",
"rgb": {
"r": 59,
"g": 22,
"b": 127
},
"hsl": {
"h": 261.143,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.33125,
"c": 0.1598,
"h": 290.8
},
"luminance": 0.03036
}Semantic roles & 50–950 ramp
primary
#3B167F
secondary
#8AB43D
accent
#ED3BAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F