#3C1794#3C1794
#3C1794 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.183 H 286.0°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1794 |
|---|---|
| RGB | rgb(60, 23, 148) |
| HSL | hsl(258, 73%, 34%) |
| HSV | hsv(258, 84%, 58%) |
| CMYK | cmyk(59.5%, 84.5%, 0%, 42%) |
| CIE-LAB | lab(22.69, 47.81, -60.97) |
| CIE-LCH | lch(22.69, 77.48, 308.10°) |
| OKLab | oklab(35.55% 0.0503 -0.1756) |
| OKLCH | oklch(35.55% 0.183 286) |
| XYZ | xyz(7.5136, 3.7111, 28.3316) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.86
Indigo Blue
#3A18B1
ΔE00 4.01
Royal
#0C1793
ΔE00 4.43
Indigo
#4B0082
ΔE00 4.77
Cobalt Blue
#030AA7
ΔE00 4.82
Ultramarine
#2000B1
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1794 #6F9417
analogous
#173094 #3C1794 #7A1794
triadic
#3C1794 #943C17 #17943C
tetradic
#3C1794 #941730 #6F9417 #17947A
square
#3C1794 #941730 #6F9417 #17947A
split-complementary
#3C1794 #947A17 #309417
monochromatic
#11072A #270F5F #3C1794 #511FC9 #7244E2
Accessibility & contrast
On white
12.05
#3C1794 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3C1794 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1794
12.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1794 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1794 | 1.00 | 12.05 | 1.74 | 12.05 |
| #FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#0A3E57
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3c1794; /* rgb */ color: rgb(60, 23, 148); /* oklch */ color: oklch(35.6% 0.183 286.0);
Tailwind
colors: {
custom: {
50: '#7e5bb5',
500: '#3c1794',
950: '#000000',
},
}SCSS
$custom: #3c1794; $custom-light: #7e5bb5; $custom-dark: #000000;
JSON
{
"hex": "#3c1794",
"rgb": {
"r": 60,
"g": 23,
"b": 148
},
"hsl": {
"h": 257.76,
"s": 73.099,
"l": 33.529
},
"oklch": {
"l": 0.35552,
"c": 0.18271,
"h": 286
},
"luminance": 0.03712
}Semantic roles & 50–950 ramp
primary
#3C1794
secondary
#9DC344
accent
#F038B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980