#3C187D#3C187D
#3C187D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.156 H 291.8°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).
Color values
| HEX | #3C187D |
|---|---|
| RGB | rgb(60, 24, 125) |
| HSL | hsl(261, 68%, 29%) |
| HSV | hsv(261, 81%, 49%) |
| CMYK | cmyk(52%, 80.8%, 0%, 51%) |
| CIE-LAB | lab(20.42, 40.90, -50.30) |
| CIE-LCH | lch(20.42, 64.83, 309.11°) |
| OKLab | oklab(33.25% 0.0577 -0.1445) |
| OKLCH | oklch(33.25% 0.156 291.8) |
| XYZ | xyz(5.8907, 3.0944, 19.6849) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.21
Indigo
#4B0082
ΔE00 3.87
Royal Purple (survey)
#4B006E
ΔE00 5.38
Midnight Blue
#191970
ΔE00 5.44
Royal
#0C1793
ΔE00 5.99
Darkblue
#00008B
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C187D #597D18
analogous
#18277D #3C187D #6F187D
triadic
#3C187D #7D3C18 #187D3C
tetradic
#3C187D #7D1827 #597D18 #187D6F
square
#3C187D #7D1827 #597D18 #187D6F
split-complementary
#3C187D #7D6F18 #277D18
monochromatic
#0C051A #230E4A #3C187D #5522B0 #7037D9
Accessibility & contrast
On white
12.97
#3C187D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3C187D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C187D
12.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C187D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C187D | 1.00 | 12.97 | 1.62 | 12.97 |
| #FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#26354A
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3c187d; /* rgb */ color: rgb(60, 24, 125); /* oklch */ color: oklch(33.3% 0.156 291.8);
Tailwind
colors: {
custom: {
50: '#7a5aa4',
500: '#3c187d',
950: '#000000',
},
}SCSS
$custom: #3c187d; $custom-light: #7a5aa4; $custom-dark: #000000;
JSON
{
"hex": "#3c187d",
"rgb": {
"r": 60,
"g": 24,
"b": 125
},
"hsl": {
"h": 261.386,
"s": 67.785,
"l": 29.216
},
"oklch": {
"l": 0.33252,
"c": 0.15557,
"h": 291.8
},
"luminance": 0.03095
}Semantic roles & 50–950 ramp
primary
#3C187D
secondary
#89B23F
accent
#EB3DAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F