#3B1794#3B1794
#3B1794 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.183 H 285.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1794 |
|---|---|
| RGB | rgb(59, 23, 148) |
| HSL | hsl(257, 73%, 34%) |
| HSV | hsv(257, 84%, 58%) |
| CMYK | cmyk(60.1%, 84.5%, 0%, 42%) |
| CIE-LAB | lab(22.59, 47.70, -61.15) |
| CIE-LCH | lch(22.59, 77.56, 307.96°) |
| OKLab | oklab(35.45% 0.0487 -0.1762) |
| OKLCH | oklch(35.45% 0.183 285.4) |
| XYZ | xyz(7.4537, 3.6803, 28.3288) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.85
Indigo Blue
#3A18B1
ΔE00 4.00
Royal
#0C1793
ΔE00 4.29
Cobalt Blue
#030AA7
ΔE00 4.71
Ultramarine
#2000B1
ΔE00 4.78
Indigo
#4B0082
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1794 #709417
analogous
#173194 #3B1794 #791794
triadic
#3B1794 #943B17 #17943B
tetradic
#3B1794 #941731 #709417 #179479
square
#3B1794 #941731 #709417 #179479
split-complementary
#3B1794 #947917 #319417
monochromatic
#11072A #260F5F #3B1794 #501FC9 #7144E2
Accessibility & contrast
On white
12.10
#3B1794 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3B1794 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1794
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1794 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1794 | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#043E57
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3b1794; /* rgb */ color: rgb(59, 23, 148); /* oklch */ color: oklch(35.5% 0.183 285.4);
Tailwind
colors: {
custom: {
50: '#7d5bb5',
500: '#3b1794',
950: '#000000',
},
}SCSS
$custom: #3b1794; $custom-light: #7d5bb5; $custom-dark: #000000;
JSON
{
"hex": "#3b1794",
"rgb": {
"r": 59,
"g": 23,
"b": 148
},
"hsl": {
"h": 257.28,
"s": 73.099,
"l": 33.529
},
"oklch": {
"l": 0.35452,
"c": 0.18281,
"h": 285.4
},
"luminance": 0.03681
}Semantic roles & 50–950 ramp
primary
#3B1794
secondary
#9EC344
accent
#F038BB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980