#3C177F#3C177F
#3C177F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.159 H 291.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #3C177F |
|---|---|
| RGB | rgb(60, 23, 127) |
| HSL | hsl(261, 69%, 29%) |
| HSV | hsv(261, 82%, 50%) |
| CMYK | cmyk(52.8%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(20.46, 41.92, -51.50) |
| CIE-LCH | lch(20.46, 66.40, 309.14°) |
| OKLab | oklab(33.34% 0.0578 -0.148) |
| OKLCH | oklch(33.34% 0.159 291.3) |
| XYZ | xyz(5.9995, 3.1055, 20.3579) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.93
Indigo
#4B0082
ΔE00 3.69
Royal Purple (survey)
#4B006E
ΔE00 5.46
Midnight Blue
#191970
ΔE00 5.55
Royal
#0C1793
ΔE00 5.75
Darkblue
#00008B
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C177F #5A7F17
analogous
#17267F #3C177F #70177F
triadic
#3C177F #7F3C17 #177F3C
tetradic
#3C177F #7F1726 #5A7F17 #177F70
square
#3C177F #7F1726 #5A7F17 #177F70
split-complementary
#3C177F #7F7017 #267F17
monochromatic
#0C051A #240E4B #3C177F #5420B3 #7036DB
Accessibility & contrast
On white
12.95
#3C177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3C177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C177F
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C177F | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 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: #3c177f; /* rgb */ color: rgb(60, 23, 127); /* oklch */ color: oklch(33.3% 0.159 291.3);
Tailwind
colors: {
custom: {
50: '#7a59a5',
500: '#3c177f',
950: '#000000',
},
}SCSS
$custom: #3c177f; $custom-light: #7a59a5; $custom-dark: #000000;
JSON
{
"hex": "#3c177f",
"rgb": {
"r": 60,
"g": 23,
"b": 127
},
"hsl": {
"h": 261.346,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.33344,
"c": 0.15886,
"h": 291.3
},
"luminance": 0.03106
}Semantic roles & 50–950 ramp
primary
#3C177F
secondary
#8AB43E
accent
#EC3CAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F