#3C1B8A#3C1B8A
#3C1B8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.168 H 287.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1B8A |
|---|---|
| RGB | rgb(60, 27, 138) |
| HSL | hsl(258, 67%, 32%) |
| HSV | hsv(258, 80%, 54%) |
| CMYK | cmyk(56.5%, 80.4%, 0%, 45.9%) |
| CIE-LAB | lab(22.23, 43.21, -55.52) |
| CIE-LCH | lch(22.23, 70.36, 307.89°) |
| OKLab | oklab(34.91% 0.0513 -0.1598) |
| OKLCH | oklch(34.91% 0.168 287.8) |
| XYZ | xyz(6.8415, 3.5791, 24.3702) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.71
Indigo
#4B0082
ΔE00 4.54
Royal
#0C1793
ΔE00 4.79
Indigo Blue
#3A18B1
ΔE00 5.48
Cobalt Blue
#030AA7
ΔE00 6.03
Midnight Blue
#191970
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1B8A #698A1B
analogous
#1B318A #3C1B8A #741B8A
triadic
#3C1B8A #8A3C1B #1B8A3C
tetradic
#3C1B8A #8A1B31 #698A1B #1B8A74
square
#3C1B8A #8A1B31 #698A1B #1B8A74
split-complementary
#3C1B8A #8A741B #318A1B
monochromatic
#0F0724 #261157 #3C1B8A #5225BD #7145DB
Accessibility & contrast
On white
12.24
#3C1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3C1B8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1B8A
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1B8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1B8A | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#1A3B52
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3c1b8a; /* rgb */ color: rgb(60, 27, 138); /* oklch */ color: oklch(34.9% 0.168 287.8);
Tailwind
colors: {
custom: {
50: '#7b5cad',
500: '#3c1b8a',
950: '#000000',
},
}SCSS
$custom: #3c1b8a; $custom-light: #7b5cad; $custom-dark: #000000;
JSON
{
"hex": "#3c1b8a",
"rgb": {
"r": 60,
"g": 27,
"b": 138
},
"hsl": {
"h": 257.838,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.34912,
"c": 0.1678,
"h": 287.8
},
"luminance": 0.0358
}Semantic roles & 50–950 ramp
primary
#3C1B8A
secondary
#99BC45
accent
#EA3EB7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F