#3C1A7C#3C1A7C
#3C1A7C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.152 H 291.7°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1A7C |
|---|---|
| RGB | rgb(60, 26, 124) |
| HSL | hsl(261, 65%, 29%) |
| HSV | hsv(261, 79%, 49%) |
| CMYK | cmyk(51.6%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(20.65, 39.65, -49.28) |
| CIE-LCH | lch(20.65, 63.25, 308.82°) |
| OKLab | oklab(33.39% 0.0564 -0.1415) |
| OKLCH | oklch(33.39% 0.152 291.7) |
| XYZ | xyz(5.8699, 3.1545, 19.3645) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.65
Indigo
#4B0082
ΔE00 4.21
Midnight Blue
#191970
ΔE00 5.33
Royal Purple (survey)
#4B006E
ΔE00 5.54
Royal
#0C1793
ΔE00 6.13
Darkblue
#00008B
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1A7C #5A7C1A
analogous
#1A297C #3C1A7C #6D1A7C
triadic
#3C1A7C #7C3C1A #1A7C3C
tetradic
#3C1A7C #7C1A29 #5A7C1A #1A7C6D
square
#3C1A7C #7C1A29 #5A7C1A #1A7C6D
split-complementary
#3C1A7C #7C6D1A #297C1A
monochromatic
#0C0519 #240F49 #3C1A7C #5425AF #703BD6
Accessibility & contrast
On white
12.88
#3C1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3C1A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1A7C
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1A7C | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#27354A
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3c1a7c; /* rgb */ color: rgb(60, 26, 124); /* oklch */ color: oklch(33.4% 0.152 291.7);
Tailwind
colors: {
custom: {
50: '#795ba3',
500: '#3c1a7c',
950: '#000000',
},
}SCSS
$custom: #3c1a7c; $custom-light: #795ba3; $custom-dark: #000000;
JSON
{
"hex": "#3c1a7c",
"rgb": {
"r": 60,
"g": 26,
"b": 124
},
"hsl": {
"h": 260.816,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.33386,
"c": 0.15232,
"h": 291.7
},
"luminance": 0.03155
}Semantic roles & 50–950 ramp
primary
#3C1A7C
secondary
#8AB042
accent
#E840AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F