#3C1F87#3C1F87
#3C1F87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.160 H 287.8°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1F87 |
|---|---|
| RGB | rgb(60, 31, 135) |
| HSL | hsl(257, 63%, 33%) |
| HSV | hsv(257, 77%, 53%) |
| CMYK | cmyk(55.6%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(22.62, 40.35, -53.00) |
| CIE-LCH | lch(22.62, 66.61, 307.28°) |
| OKLab | oklab(35.09% 0.0491 -0.1524) |
| OKLCH | oklch(35.09% 0.16 287.8) |
| XYZ | xyz(6.7253, 3.6896, 23.2748) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.43
Indigo
#4B0082
ΔE00 5.10
Royal
#0C1793
ΔE00 5.15
Midnight Blue
#191970
ΔE00 5.79
Indigo Blue
#3A18B1
ΔE00 6.05
Cobalt Blue
#030AA7
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1F87 #6A871F
analogous
#1F3687 #3C1F87 #701F87
triadic
#3C1F87 #873C1F #1F873C
tetradic
#3C1F87 #871F36 #6A871F #1F8770
square
#3C1F87 #871F36 #6A871F #1F8770
split-complementary
#3C1F87 #87701F #36871F
monochromatic
#100823 #261455 #3C1F87 #522AB9 #714BD6
Accessibility & contrast
On white
12.08
#3C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3C1F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1F87
12.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1F87 | 1.00 | 12.08 | 1.74 | 12.08 |
| #FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#1D3C51
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3c1f87; /* rgb */ color: rgb(60, 31, 135); /* oklch */ color: oklch(35.1% 0.160 287.8);
Tailwind
colors: {
custom: {
50: '#7b5eab',
500: '#3c1f87',
950: '#000000',
},
}SCSS
$custom: #3c1f87; $custom-light: #7b5eab; $custom-dark: #000000;
JSON
{
"hex": "#3c1f87",
"rgb": {
"r": 60,
"g": 31,
"b": 135
},
"hsl": {
"h": 256.731,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.35093,
"c": 0.16016,
"h": 287.8
},
"luminance": 0.0369
}Semantic roles & 50–950 ramp
primary
#3C1F87
secondary
#99B84A
accent
#E642B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F