#3C157E#3C157E
#3C157E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.160 H 291.9°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).
Color values
| HEX | #3C157E |
|---|---|
| RGB | rgb(60, 21, 126) |
| HSL | hsl(262, 71%, 29%) |
| HSV | hsv(262, 83%, 49%) |
| CMYK | cmyk(52.4%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(20.06, 42.52, -51.53) |
| CIE-LCH | lch(20.06, 66.81, 309.53°) |
| OKLab | oklab(33.03% 0.0596 -0.148) |
| OKLCH | oklch(33.03% 0.16 291.9) |
| XYZ | xyz(5.8965, 3.0031, 20.0036) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.63
Indigo
#4B0082
ΔE00 3.44
Royal Purple (survey)
#4B006E
ΔE00 5.16
Midnight Blue
#191970
ΔE00 5.63
Royal
#0C1793
ΔE00 5.89
Darkblue
#00008B
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C157E #577E15
analogous
#15227E #3C157E #71157E
triadic
#3C157E #7E3C15 #157E3C
tetradic
#3C157E #7E1522 #577E15 #157E71
square
#3C157E #7E1522 #577E15 #157E71
split-complementary
#3C157E #7E7115 #227E15
monochromatic
#0C041A #230C4A #3C157E #551EB2 #7131DD
Accessibility & contrast
On white
13.12
#3C157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3C157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C157E
13.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C157E | 1.00 | 13.12 | 1.60 | 13.12 |
| #FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#25344A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3c157e; /* rgb */ color: rgb(60, 21, 126); /* oklch */ color: oklch(33.0% 0.160 291.9);
Tailwind
colors: {
custom: {
50: '#7a58a4',
500: '#3c157e',
950: '#000000',
},
}SCSS
$custom: #3c157e; $custom-light: #7a58a4; $custom-dark: #000000;
JSON
{
"hex": "#3c157e",
"rgb": {
"r": 60,
"g": 21,
"b": 126
},
"hsl": {
"h": 262.286,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.33032,
"c": 0.15959,
"h": 291.9
},
"luminance": 0.03003
}Semantic roles & 50–950 ramp
primary
#3C157E
secondary
#87B33C
accent
#EE3AAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F