#3C187F#3C187F
#3C187F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.158 H 291.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #3C187F |
|---|---|
| RGB | rgb(60, 24, 127) |
| HSL | hsl(261, 68%, 30%) |
| HSV | hsv(261, 81%, 50%) |
| CMYK | cmyk(52.8%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(20.62, 41.46, -51.24) |
| CIE-LCH | lch(20.62, 65.91, 308.98°) |
| OKLab | oklab(33.45% 0.057 -0.1472) |
| OKLCH | oklch(33.45% 0.158 291.2) |
| XYZ | xyz(6.0198, 3.1460, 20.3646) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.11
Indigo
#4B0082
ΔE00 3.84
Midnight Blue
#191970
ΔE00 5.50
Royal Purple (survey)
#4B006E
ΔE00 5.56
Royal
#0C1793
ΔE00 5.75
Darkblue
#00008B
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C187F #5B7F18
analogous
#18277F #3C187F #70187F
triadic
#3C187F #7F3C18 #187F3C
tetradic
#3C187F #7F1827 #5B7F18 #187F70
square
#3C187F #7F1827 #5B7F18 #187F70
split-complementary
#3C187F #7F7018 #277F18
monochromatic
#0C051A #240E4C #3C187F #5422B2 #7038D9
Accessibility & contrast
On white
12.89
#3C187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3C187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C187F
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C187F | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#25364B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3c187f; /* rgb */ color: rgb(60, 24, 127); /* oklch */ color: oklch(33.5% 0.158 291.2);
Tailwind
colors: {
custom: {
50: '#7a5aa5',
500: '#3c187f',
950: '#000000',
},
}SCSS
$custom: #3c187f; $custom-light: #7a5aa5; $custom-dark: #000000;
JSON
{
"hex": "#3c187f",
"rgb": {
"r": 60,
"g": 24,
"b": 127
},
"hsl": {
"h": 260.971,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.33453,
"c": 0.15789,
"h": 291.2
},
"luminance": 0.03146
}Semantic roles & 50–950 ramp
primary
#3C187F
secondary
#8BB33F
accent
#EB3DAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F