#3C166B#3C166B
#3C166B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.137 H 298.3°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #3C166B |
|---|---|
| RGB | rgb(60, 22, 107) |
| HSL | hsl(267, 66%, 25%) |
| HSV | hsv(267, 79%, 42%) |
| CMYK | cmyk(43.9%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(18.35, 36.81, -42.10) |
| CIE-LCH | lch(18.35, 55.92, 311.17°) |
| OKLab | oklab(31.27% 0.0648 -0.1204) |
| OKLCH | oklch(31.27% 0.137 298.3) |
| XYZ | xyz(4.8035, 2.5959, 14.1551) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.15
Indigo
#4B0082
ΔE00 5.06
Indigo (survey)
#380282
ΔE00 5.11
Dark Indigo
#1F0954
ΔE00 5.84
Midnight Blue
#191970
ΔE00 6.08
Dark Royal Blue
#02066F
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C166B #456B16
analogous
#161A6B #3C166B #66166B
triadic
#3C166B #6B3C16 #166B3C
tetradic
#3C166B #6B161A #456B16 #166B66
square
#3C166B #6B161A #456B16 #166B66
split-complementary
#3C166B #6B6616 #1A6B16
monochromatic
#0E0519 #200C38 #3C166B #58209E #752BD1
Accessibility & contrast
On white
13.82
#3C166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#3C166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C166B
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C166B | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#302C3F
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3c166b; /* rgb */ color: rgb(60, 22, 107); /* oklch */ color: oklch(31.3% 0.137 298.3);
Tailwind
colors: {
custom: {
50: '#775896',
500: '#3c166b',
950: '#000000',
},
}SCSS
$custom: #3c166b; $custom-light: #775896; $custom-dark: #000000;
JSON
{
"hex": "#3c166b",
"rgb": {
"r": 60,
"g": 22,
"b": 107
},
"hsl": {
"h": 266.824,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.31271,
"c": 0.13675,
"h": 298.3
},
"luminance": 0.02596
}Semantic roles & 50–950 ramp
primary
#3C166B
secondary
#74A13B
accent
#E93F9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E