#3F167B#3F167B
#3F167B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.155 H 294.7°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).
Color values
| HEX | #3F167B |
|---|---|
| RGB | rgb(63, 22, 123) |
| HSL | hsl(264, 70%, 28%) |
| HSV | hsv(264, 82%, 48%) |
| CMYK | cmyk(48.8%, 82.1%, 0%, 51.8%) |
| CIE-LAB | lab(20.28, 41.70, -49.23) |
| CIE-LCH | lch(20.28, 64.52, 310.26°) |
| OKLab | oklab(33.18% 0.0648 -0.1412) |
| OKLCH | oklch(33.18% 0.155 294.7) |
| XYZ | xyz(5.9110, 3.0605, 19.0143) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.17
Indigo
#4B0082
ΔE00 3.31
Royal Purple (survey)
#4B006E
ΔE00 4.59
Midnight Blue
#191970
ΔE00 6.00
Royal
#0C1793
ΔE00 6.68
Navy
#000080
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F167B #527B16
analogous
#16207B #3F167B #71167B
triadic
#3F167B #7B3F16 #167B3F
tetradic
#3F167B #7B1620 #527B16 #167B71
square
#3F167B #7B1620 #527B16 #167B71
split-complementary
#3F167B #7B7116 #207B16
monochromatic
#0D051A #240D47 #3F167B #5A1FAF #7631DA
Accessibility & contrast
On white
13.03
#3F167B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3F167B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F167B
13.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F167B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F167B | 1.00 | 13.03 | 1.61 | 13.03 |
| #FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#2D3349
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3f167b; /* rgb */ color: rgb(63, 22, 123); /* oklch */ color: oklch(33.2% 0.155 294.7);
Tailwind
colors: {
custom: {
50: '#7b59a2',
500: '#3f167b',
950: '#000000',
},
}SCSS
$custom: #3f167b; $custom-light: #7b59a2; $custom-dark: #000000;
JSON
{
"hex": "#3f167b",
"rgb": {
"r": 63,
"g": 22,
"b": 123
},
"hsl": {
"h": 264.356,
"s": 69.655,
"l": 28.431
},
"oklch": {
"l": 0.33184,
"c": 0.15538,
"h": 294.7
},
"luminance": 0.03061
}Semantic roles & 50–950 ramp
primary
#3F167B
secondary
#81B03D
accent
#EC3BA5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F