#3C178F#3C178F
#3C178F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.177 H 287.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #3C178F |
|---|---|
| RGB | rgb(60, 23, 143) |
| HSL | hsl(259, 72%, 33%) |
| HSV | hsv(259, 84%, 56%) |
| CMYK | cmyk(58%, 83.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.15, 46.41, -58.77) |
| CIE-LCH | lch(22.15, 74.89, 308.30°) |
| OKLab | oklab(35.01% 0.0521 -0.1692) |
| OKLCH | oklch(35.01% 0.177 287.1) |
| XYZ | xyz(7.1263, 3.5562, 26.2922) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.39
Indigo
#4B0082
ΔE00 4.35
Royal
#0C1793
ΔE00 4.53
Indigo Blue
#3A18B1
ΔE00 4.75
Cobalt Blue
#030AA7
ΔE00 5.26
Ultramarine
#2000B1
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C178F #6A8F17
analogous
#172E8F #3C178F #78178F
triadic
#3C178F #8F3C17 #178F3C
tetradic
#3C178F #8F172E #6A8F17 #178F78
square
#3C178F #8F172E #6A8F17 #178F78
split-complementary
#3C178F #8F7817 #2E8F17
monochromatic
#100626 #260F5A #3C178F #521FC4 #7140E0
Accessibility & contrast
On white
12.27
#3C178F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3C178F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C178F
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C178F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C178F | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#143C54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3c178f; /* rgb */ color: rgb(60, 23, 143); /* oklch */ color: oklch(35.0% 0.177 287.1);
Tailwind
colors: {
custom: {
50: '#7d5ab1',
500: '#3c178f',
950: '#000000',
},
}SCSS
$custom: #3c178f; $custom-light: #7d5ab1; $custom-dark: #000000;
JSON
{
"hex": "#3c178f",
"rgb": {
"r": 60,
"g": 23,
"b": 143
},
"hsl": {
"h": 258.5,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.35014,
"c": 0.17709,
"h": 287.1
},
"luminance": 0.03557
}Semantic roles & 50–950 ramp
primary
#3C178F
secondary
#99C141
accent
#EF39B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980