#3C1F97#3C1F97
#3C1F97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.179 H 284.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1F97 |
|---|---|
| RGB | rgb(60, 31, 151) |
| HSL | hsl(255, 66%, 36%) |
| HSV | hsv(255, 79%, 59%) |
| CMYK | cmyk(60.3%, 79.5%, 0%, 40.8%) |
| CIE-LAB | lab(24.24, 45.10, -60.27) |
| CIE-LCH | lch(24.24, 75.28, 306.81°) |
| OKLab | oklab(36.72% 0.0445 -0.1737) |
| OKLCH | oklch(36.72% 0.179 284.4) |
| XYZ | xyz(7.9377, 4.1745, 29.6596) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.65
Royal
#0C1793
ΔE00 4.58
Cobalt Blue
#030AA7
ΔE00 5.24
Indigo (survey)
#380282
ΔE00 5.26
Ultramarine
#2000B1
ΔE00 5.31
Royal Blue (survey)
#0504AA
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1F97 #7A971F
analogous
#1F3E97 #3C1F97 #781F97
triadic
#3C1F97 #973C1F #1F973C
tetradic
#3C1F97 #971F3E #7A971F #1F9778
square
#3C1F97 #971F3E #7A971F #1F9778
split-complementary
#3C1F97 #97781F #3E971F
monochromatic
#140A31 #281564 #3C1F97 #5029CA #7554DC
Accessibility & contrast
On white
11.44
#3C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3C1F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1F97
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1F97 | 1.00 | 11.44 | 1.84 | 11.44 |
| #FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#01425B
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3c1f97; /* rgb */ color: rgb(60, 31, 151); /* oklch */ color: oklch(36.7% 0.179 284.4);
Tailwind
colors: {
custom: {
50: '#7e5fb7',
500: '#3c1f97',
950: '#000000',
},
}SCSS
$custom: #3c1f97; $custom-light: #7e5fb7; $custom-dark: #000000;
JSON
{
"hex": "#3c1f97",
"rgb": {
"r": 60,
"g": 31,
"b": 151
},
"hsl": {
"h": 254.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.36718,
"c": 0.17929,
"h": 284.4
},
"luminance": 0.04175
}Semantic roles & 50–950 ramp
primary
#3C1F97
secondary
#A5BF52
accent
#E93FC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980