#3B177E#3B177E
#3B177E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.158 H 291.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #3B177E |
|---|---|
| RGB | rgb(59, 23, 126) |
| HSL | hsl(261, 69%, 29%) |
| HSV | hsv(261, 82%, 49%) |
| CMYK | cmyk(53.2%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(20.24, 41.49, -51.24) |
| CIE-LCH | lch(20.24, 65.93, 309.00°) |
| OKLab | oklab(33.13% 0.0565 -0.1472) |
| OKLCH | oklch(33.13% 0.158 291) |
| XYZ | xyz(5.8748, 3.0487, 20.0135) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.95
Indigo
#4B0082
ΔE00 3.82
Midnight Blue
#191970
ΔE00 5.36
Royal Purple (survey)
#4B006E
ΔE00 5.48
Royal
#0C1793
ΔE00 5.72
Darkblue
#00008B
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B177E #5A7E17
analogous
#17267E #3B177E #6F177E
triadic
#3B177E #7E3B17 #177E3B
tetradic
#3B177E #7E1726 #5A7E17 #177E6F
square
#3B177E #7E1726 #5A7E17 #177E6F
split-complementary
#3B177E #7E6F17 #267E17
monochromatic
#0C051A #230E4A #3B177E #5320B2 #6F35DA
Accessibility & contrast
On white
13.05
#3B177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3B177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B177E
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B177E | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#23354B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3b177e; /* rgb */ color: rgb(59, 23, 126); /* oklch */ color: oklch(33.1% 0.158 291.0);
Tailwind
colors: {
custom: {
50: '#7959a4',
500: '#3b177e',
950: '#000000',
},
}SCSS
$custom: #3b177e; $custom-light: #7959a4; $custom-dark: #000000;
JSON
{
"hex": "#3b177e",
"rgb": {
"r": 59,
"g": 23,
"b": 126
},
"hsl": {
"h": 260.971,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.3313,
"c": 0.1577,
"h": 291
},
"luminance": 0.03049
}Semantic roles & 50–950 ramp
primary
#3B177E
secondary
#8AB33E
accent
#EC3CAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F