#3C168F#3C168F
#3C168F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.178 H 287.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).
Color values
| HEX | #3C168F |
|---|---|
| RGB | rgb(60, 22, 143) |
| HSL | hsl(259, 73%, 32%) |
| HSV | hsv(259, 85%, 56%) |
| CMYK | cmyk(58%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(22.01, 46.82, -59.00) |
| CIE-LCH | lch(22.01, 75.32, 308.43°) |
| OKLab | oklab(34.92% 0.0527 -0.1699) |
| OKLCH | oklch(34.92% 0.178 287.2) |
| XYZ | xyz(7.1068, 3.5173, 26.2857) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.25
Indigo
#4B0082
ΔE00 4.25
Royal
#0C1793
ΔE00 4.55
Indigo Blue
#3A18B1
ΔE00 4.77
Cobalt Blue
#030AA7
ΔE00 5.22
Ultramarine
#2000B1
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C168F #698F16
analogous
#162D8F #3C168F #79168F
triadic
#3C168F #8F3C16 #168F3C
tetradic
#3C168F #8F162D #698F16 #168F79
square
#3C168F #8F162D #698F16 #168F79
split-complementary
#3C168F #8F7916 #2D8F16
monochromatic
#0F0625 #260E5A #3C168F #521EC4 #713EE1
Accessibility & contrast
On white
12.33
#3C168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#3C168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C168F
12.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C168F | 1.00 | 12.33 | 1.70 | 12.33 |
| #FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#143C54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3c168f; /* rgb */ color: rgb(60, 22, 143); /* oklch */ color: oklch(34.9% 0.178 287.2);
Tailwind
colors: {
custom: {
50: '#7d5ab1',
500: '#3c168f',
950: '#000000',
},
}SCSS
$custom: #3c168f; $custom-light: #7d5ab1; $custom-dark: #000000;
JSON
{
"hex": "#3c168f",
"rgb": {
"r": 60,
"g": 22,
"b": 143
},
"hsl": {
"h": 258.843,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.34918,
"c": 0.17789,
"h": 287.2
},
"luminance": 0.03518
}Semantic roles & 50–950 ramp
primary
#3C168F
secondary
#99C13F
accent
#F038B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980