#3C157F#3C157F
#3C157F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.161 H 291.6°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #3C157F |
|---|---|
| RGB | rgb(60, 21, 127) |
| HSL | hsl(262, 72%, 29%) |
| HSV | hsv(262, 83%, 50%) |
| CMYK | cmyk(52.8%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(20.16, 42.79, -51.99) |
| CIE-LCH | lch(20.16, 67.34, 309.46°) |
| OKLab | oklab(33.14% 0.0592 -0.1494) |
| OKLCH | oklch(33.14% 0.161 291.6) |
| XYZ | xyz(5.9613, 3.0291, 20.3451) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.58
Indigo
#4B0082
ΔE00 3.43
Royal Purple (survey)
#4B006E
ΔE00 5.27
Midnight Blue
#191970
ΔE00 5.66
Royal
#0C1793
ΔE00 5.77
Darkblue
#00008B
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C157F #587F15
analogous
#15237F #3C157F #71157F
triadic
#3C157F #7F3C15 #157F3C
tetradic
#3C157F #7F1523 #587F15 #157F71
square
#3C157F #7F1523 #587F15 #157F71
split-complementary
#3C157F #7F7115 #237F15
monochromatic
#0C041A #230C4A #3C157F #551EB4 #7131DD
Accessibility & contrast
On white
13.08
#3C157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3C157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C157F
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C157F | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#25344B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3c157f; /* rgb */ color: rgb(60, 21, 127); /* oklch */ color: oklch(33.1% 0.161 291.6);
Tailwind
colors: {
custom: {
50: '#7a58a5',
500: '#3c157f',
950: '#000000',
},
}SCSS
$custom: #3c157f; $custom-light: #7a58a5; $custom-dark: #000000;
JSON
{
"hex": "#3c157f",
"rgb": {
"r": 60,
"g": 21,
"b": 127
},
"hsl": {
"h": 262.075,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.33135,
"c": 0.16072,
"h": 291.6
},
"luminance": 0.03029
}Semantic roles & 50–950 ramp
primary
#3C157F
secondary
#88B43C
accent
#EE39AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F