#3C157C#3C157C
#3C157C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 292.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #3C157C |
|---|---|
| RGB | rgb(60, 21, 124) |
| HSL | hsl(263, 71%, 28%) |
| HSV | hsv(263, 83%, 49%) |
| CMYK | cmyk(51.6%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(19.85, 41.97, -50.60) |
| CIE-LCH | lch(19.85, 65.73, 309.67°) |
| OKLab | oklab(32.83% 0.0603 -0.1453) |
| OKLCH | oklch(32.83% 0.157 292.5) |
| XYZ | xyz(5.7687, 2.9520, 19.3307) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.76
Indigo
#4B0082
ΔE00 3.48
Royal Purple (survey)
#4B006E
ΔE00 4.97
Midnight Blue
#191970
ΔE00 5.58
Royal
#0C1793
ΔE00 6.12
Navy
#000080
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C157C #557C15
analogous
#15227C #3C157C #6F157C
triadic
#3C157C #7C3C15 #157C3C
tetradic
#3C157C #7C1522 #557C15 #157C6F
square
#3C157C #7C1522 #557C15 #157C6F
split-complementary
#3C157C #7C6F15 #227C15
monochromatic
#0D041A #230C48 #3C157C #551EB0 #7130DC
Accessibility & contrast
On white
13.20
#3C157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#3C157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C157C
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C157C | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#273349
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3c157c; /* rgb */ color: rgb(60, 21, 124); /* oklch */ color: oklch(32.8% 0.157 292.5);
Tailwind
colors: {
custom: {
50: '#7a58a3',
500: '#3c157c',
950: '#000000',
},
}SCSS
$custom: #3c157c; $custom-light: #7a58a3; $custom-dark: #000000;
JSON
{
"hex": "#3c157c",
"rgb": {
"r": 60,
"g": 21,
"b": 124
},
"hsl": {
"h": 262.718,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.32827,
"c": 0.15732,
"h": 292.5
},
"luminance": 0.02952
}Semantic roles & 50–950 ramp
primary
#3C157C
secondary
#85B13C
accent
#EE3AAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F