#3D177E#3D177E
#3D177E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.158 H 292.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #3D177E |
|---|---|
| RGB | rgb(61, 23, 126) |
| HSL | hsl(262, 69%, 29%) |
| HSV | hsv(262, 82%, 49%) |
| CMYK | cmyk(51.6%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(20.48, 41.78, -50.82) |
| CIE-LCH | lch(20.48, 65.79, 309.42°) |
| OKLab | oklab(33.36% 0.0598 -0.146) |
| OKLCH | oklch(33.36% 0.158 292.3) |
| XYZ | xyz(5.9957, 3.1110, 20.0192) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.01
Indigo
#4B0082
ΔE00 3.59
Royal Purple (survey)
#4B006E
ΔE00 5.24
Midnight Blue
#191970
ΔE00 5.67
Royal
#0C1793
ΔE00 6.01
Darkblue
#00008B
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D177E #587E17
analogous
#17247E #3D177E #71177E
triadic
#3D177E #7E3D17 #177E3D
tetradic
#3D177E #7E1724 #587E17 #177E71
square
#3D177E #7E1724 #587E17 #177E71
split-complementary
#3D177E #7E7117 #247E17
monochromatic
#0D051A #240E4A #3D177E #5620B2 #7235DA
Accessibility & contrast
On white
12.95
#3D177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3D177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D177E
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D177E | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3d177e; /* rgb */ color: rgb(61, 23, 126); /* oklch */ color: oklch(33.4% 0.158 292.3);
Tailwind
colors: {
custom: {
50: '#7a59a4',
500: '#3d177e',
950: '#000000',
},
}SCSS
$custom: #3d177e; $custom-light: #7a59a4; $custom-dark: #000000;
JSON
{
"hex": "#3d177e",
"rgb": {
"r": 61,
"g": 23,
"b": 126
},
"hsl": {
"h": 262.136,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.33356,
"c": 0.15773,
"h": 292.3
},
"luminance": 0.03111
}Semantic roles & 50–950 ramp
primary
#3D177E
secondary
#88B33E
accent
#EC3CAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F