#3C1A7B#3C1A7B
#3C1A7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.151 H 292.0°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1A7B |
|---|---|
| RGB | rgb(60, 26, 123) |
| HSL | hsl(261, 65%, 29%) |
| HSV | hsv(261, 79%, 48%) |
| CMYK | cmyk(51.2%, 78.9%, 0%, 51.8%) |
| CIE-LAB | lab(20.55, 39.37, -48.80) |
| CIE-LCH | lch(20.55, 62.70, 308.89°) |
| OKLab | oklab(33.29% 0.0567 -0.1401) |
| OKLCH | oklch(33.29% 0.151 292) |
| XYZ | xyz(5.8070, 3.1293, 19.0331) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.72
Indigo
#4B0082
ΔE00 4.25
Midnight Blue
#191970
ΔE00 5.31
Royal Purple (survey)
#4B006E
ΔE00 5.46
Royal
#0C1793
ΔE00 6.26
Navy
#000080
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1A7B #597B1A
analogous
#1A297B #3C1A7B #6D1A7B
triadic
#3C1A7B #7B3C1A #1A7B3C
tetradic
#3C1A7B #7B1A29 #597B1A #1A7B6D
square
#3C1A7B #7B1A29 #597B1A #1A7B6D
split-complementary
#3C1A7B #7B6D1A #297B1A
monochromatic
#0C0519 #230F48 #3C1A7B #5525AE #703AD5
Accessibility & contrast
On white
12.92
#3C1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3C1A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1A7B
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1A7B | 1.00 | 12.92 | 1.63 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#27354A
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3c1a7b; /* rgb */ color: rgb(60, 26, 123); /* oklch */ color: oklch(33.3% 0.151 292.0);
Tailwind
colors: {
custom: {
50: '#795ba2',
500: '#3c1a7b',
950: '#000000',
},
}SCSS
$custom: #3c1a7b; $custom-light: #795ba2; $custom-dark: #000000;
JSON
{
"hex": "#3c1a7b",
"rgb": {
"r": 60,
"g": 26,
"b": 123
},
"hsl": {
"h": 261.031,
"s": 65.101,
"l": 29.216
},
"oklch": {
"l": 0.33287,
"c": 0.15113,
"h": 292
},
"luminance": 0.0313
}Semantic roles & 50–950 ramp
primary
#3C1A7B
secondary
#89AF42
accent
#E840AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F