#3C166C#3C166C
#3C166C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.138 H 297.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #3C166C |
|---|---|
| RGB | rgb(60, 22, 108) |
| HSL | hsl(267, 66%, 25%) |
| HSV | hsv(267, 80%, 42%) |
| CMYK | cmyk(44.4%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(18.44, 37.09, -42.60) |
| CIE-LCH | lch(18.44, 56.48, 311.05°) |
| OKLab | oklab(31.37% 0.0646 -0.1219) |
| OKLCH | oklch(31.37% 0.138 297.9) |
| XYZ | xyz(4.8565, 2.6171, 14.4337) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.15
Indigo
#4B0082
ΔE00 4.92
Indigo (survey)
#380282
ΔE00 4.95
Dark Indigo
#1F0954
ΔE00 5.91
Midnight Blue
#191970
ΔE00 5.99
Dark Royal Blue
#02066F
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C166C #466C16
analogous
#161B6C #3C166C #67166C
triadic
#3C166C #6C3C16 #166C3C
tetradic
#3C166C #6C161B #466C16 #166C67
square
#3C166C #6C161B #466C16 #166C67
split-complementary
#3C166C #6C6716 #1B6C16
monochromatic
#0E0519 #200C39 #3C166C #58209F #742BD2
Accessibility & contrast
On white
13.78
#3C166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#3C166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C166C
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C166C | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#302D40
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3c166c; /* rgb */ color: rgb(60, 22, 108); /* oklch */ color: oklch(31.4% 0.138 297.9);
Tailwind
colors: {
custom: {
50: '#775897',
500: '#3c166c',
950: '#000000',
},
}SCSS
$custom: #3c166c; $custom-light: #775897; $custom-dark: #000000;
JSON
{
"hex": "#3c166c",
"rgb": {
"r": 60,
"g": 22,
"b": 108
},
"hsl": {
"h": 266.512,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.31365,
"c": 0.13792,
"h": 297.9
},
"luminance": 0.02617
}Semantic roles & 50–950 ramp
primary
#3C166C
secondary
#75A23C
accent
#E93F9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E