#3C2187#3C2187
#3C2187 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.158 H 287.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).
Color values
| HEX | #3C2187 |
|---|---|
| RGB | rgb(60, 33, 135) |
| HSL | hsl(256, 61%, 33%) |
| HSV | hsv(256, 76%, 53%) |
| CMYK | cmyk(55.6%, 75.6%, 0%, 47.1%) |
| CIE-LAB | lab(22.99, 39.30, -52.39) |
| CIE-LCH | lch(22.99, 65.49, 306.87°) |
| OKLab | oklab(35.36% 0.0474 -0.1507) |
| OKLCH | oklch(35.36% 0.158 287.5) |
| XYZ | xyz(6.7792, 3.7973, 23.2927) |
| Luminance | 0.0380 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.87
Royal
#0C1793
ΔE00 5.28
Indigo
#4B0082
ΔE00 5.49
Midnight Blue
#191970
ΔE00 5.81
Indigo Blue
#3A18B1
ΔE00 6.15
Cobalt Blue
#030AA7
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C2187 #6C8721
analogous
#213987 #3C2187 #6F2187
triadic
#3C2187 #873C21 #21873C
tetradic
#3C2187 #872139 #6C8721 #21876F
square
#3C2187 #872139 #6C8721 #21876F
split-complementary
#3C2187 #876F21 #398721
monochromatic
#100925 #261556 #3C2187 #522DB8 #724FD4
Accessibility & contrast
On white
11.93
#3C2187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#3C2187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C2187
11.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C2187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C2187 | 1.00 | 11.93 | 1.76 | 11.93 |
| #FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#1D3D52
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3c2187; /* rgb */ color: rgb(60, 33, 135); /* oklch */ color: oklch(35.4% 0.158 287.5);
Tailwind
colors: {
custom: {
50: '#7a5fab',
500: '#3c2187',
950: '#000000',
},
}SCSS
$custom: #3c2187; $custom-light: #7a5fab; $custom-dark: #000000;
JSON
{
"hex": "#3c2187",
"rgb": {
"r": 60,
"g": 33,
"b": 135
},
"hsl": {
"h": 255.882,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.35356,
"c": 0.15797,
"h": 287.5
},
"luminance": 0.03798
}Semantic roles & 50–950 ramp
primary
#3C2187
secondary
#9BB74D
accent
#E444BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F