#3F167F#3F167F
#3F167F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.160 H 293.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #3F167F |
|---|---|
| RGB | rgb(63, 22, 127) |
| HSL | hsl(263, 70%, 29%) |
| HSV | hsv(263, 83%, 50%) |
| CMYK | cmyk(50.4%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(20.68, 42.79, -51.12) |
| CIE-LCH | lch(20.68, 66.66, 309.93°) |
| OKLab | oklab(33.58% 0.0635 -0.1467) |
| OKLCH | oklch(33.58% 0.16 293.4) |
| XYZ | xyz(6.1665, 3.1627, 20.3601) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.90
Indigo
#4B0082
ΔE00 3.21
Royal Purple (survey)
#4B006E
ΔE00 5.00
Midnight Blue
#191970
ΔE00 6.07
Royal
#0C1793
ΔE00 6.21
Darkblue
#00008B
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F167F #567F16
analogous
#16217F #3F167F #74167F
triadic
#3F167F #7F3F16 #167F3F
tetradic
#3F167F #7F1621 #567F16 #167F74
square
#3F167F #7F1621 #567F16 #167F74
split-complementary
#3F167F #7F7416 #217F16
monochromatic
#0D051A #250D4B #3F167F #591FB3 #7534DC
Accessibility & contrast
On white
12.86
#3F167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3F167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F167F
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F167F | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#2B344B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3f167f; /* rgb */ color: rgb(63, 22, 127); /* oklch */ color: oklch(33.6% 0.160 293.4);
Tailwind
colors: {
custom: {
50: '#7c59a5',
500: '#3f167f',
950: '#000000',
},
}SCSS
$custom: #3f167f; $custom-light: #7c59a5; $custom-dark: #000000;
JSON
{
"hex": "#3f167f",
"rgb": {
"r": 63,
"g": 22,
"b": 127
},
"hsl": {
"h": 263.429,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.33583,
"c": 0.15988,
"h": 293.4
},
"luminance": 0.03163
}Semantic roles & 50–950 ramp
primary
#3F167F
secondary
#85B43D
accent
#ED3BA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F