#3C217E#3C217E
#3C217E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.147 H 289.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #3C217E |
|---|---|
| RGB | rgb(60, 33, 126) |
| HSL | hsl(257, 58%, 31%) |
| HSV | hsv(257, 74%, 49%) |
| CMYK | cmyk(52.4%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(22.14, 36.57, -48.11) |
| CIE-LCH | lch(22.14, 60.43, 307.24°) |
| OKLab | oklab(34.49% 0.0496 -0.1381) |
| OKLCH | oklch(34.49% 0.147 289.7) |
| XYZ | xyz(6.1721, 3.5545, 20.0955) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.06
Midnight Blue
#191970
ΔE00 5.33
Indigo
#4B0082
ΔE00 5.53
Royal
#0C1793
ΔE00 6.20
Royal Purple (survey)
#4B006E
ΔE00 6.82
Indigo Blue
#3A18B1
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C217E #637E21
analogous
#21347E #3C217E #6A217E
triadic
#3C217E #7E3C21 #217E3C
tetradic
#3C217E #7E2134 #637E21 #217E6A
square
#3C217E #7E2134 #637E21 #217E6A
split-complementary
#3C217E #7E6A21 #347E21
monochromatic
#0E081D #25144E #3C217E #532EAE #714AD0
Accessibility & contrast
On white
12.27
#3C217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3C217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C217E
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C217E | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#25394D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3c217e; /* rgb */ color: rgb(60, 33, 126); /* oklch */ color: oklch(34.5% 0.147 289.7);
Tailwind
colors: {
custom: {
50: '#795fa4',
500: '#3c217e',
950: '#000000',
},
}SCSS
$custom: #3c217e; $custom-light: #795fa4; $custom-dark: #000000;
JSON
{
"hex": "#3c217e",
"rgb": {
"r": 60,
"g": 33,
"b": 126
},
"hsl": {
"h": 257.419,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.34493,
"c": 0.14675,
"h": 289.7
},
"luminance": 0.03555
}Semantic roles & 50–950 ramp
primary
#3C217E
secondary
#93B14A
accent
#E246B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F