#3C167F#3C167F
#3C167F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.160 H 291.5°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #3C167F |
|---|---|
| RGB | rgb(60, 22, 127) |
| HSL | hsl(262, 70%, 29%) |
| HSV | hsv(262, 83%, 50%) |
| CMYK | cmyk(52.8%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(20.31, 42.36, -51.75) |
| CIE-LCH | lch(20.31, 66.88, 309.30°) |
| OKLab | oklab(33.24% 0.0585 -0.1487) |
| OKLCH | oklch(33.24% 0.16 291.5) |
| XYZ | xyz(5.9801, 3.0665, 20.3514) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.75
Indigo
#4B0082
ΔE00 3.56
Royal Purple (survey)
#4B006E
ΔE00 5.36
Midnight Blue
#191970
ΔE00 5.61
Royal
#0C1793
ΔE00 5.76
Darkblue
#00008B
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C167F #597F16
analogous
#16257F #3C167F #71167F
triadic
#3C167F #7F3C16 #167F3C
tetradic
#3C167F #7F1625 #597F16 #167F71
square
#3C167F #7F1625 #597F16 #167F71
split-complementary
#3C167F #7F7116 #257F16
monochromatic
#0C051A #230D4B #3C167F #551FB3 #7034DC
Accessibility & contrast
On white
13.02
#3C167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3C167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C167F
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C167F | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#25354B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3c167f; /* rgb */ color: rgb(60, 22, 127); /* oklch */ color: oklch(33.2% 0.160 291.5);
Tailwind
colors: {
custom: {
50: '#7a59a5',
500: '#3c167f',
950: '#000000',
},
}SCSS
$custom: #3c167f; $custom-light: #7a59a5; $custom-dark: #000000;
JSON
{
"hex": "#3c167f",
"rgb": {
"r": 60,
"g": 22,
"b": 127
},
"hsl": {
"h": 261.714,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.33238,
"c": 0.1598,
"h": 291.5
},
"luminance": 0.03067
}Semantic roles & 50–950 ramp
primary
#3C167F
secondary
#89B43D
accent
#ED3BAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F