#3D176B#3D176B
#3D176B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.136 H 298.8°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).
Color values
| HEX | #3D176B |
|---|---|
| RGB | rgb(61, 23, 107) |
| HSL | hsl(267, 65%, 25%) |
| HSV | hsv(267, 79%, 42%) |
| CMYK | cmyk(43%, 78.5%, 0%, 58%) |
| CIE-LAB | lab(18.66, 36.51, -41.59) |
| CIE-LCH | lch(18.66, 55.34, 311.28°) |
| OKLab | oklab(31.52% 0.0655 -0.1189) |
| OKLCH | oklch(31.52% 0.136 298.8) |
| XYZ | xyz(4.8840, 2.6664, 14.1644) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.17
Indigo
#4B0082
ΔE00 5.13
Indigo (survey)
#380282
ΔE00 5.31
Dark Indigo
#1F0954
ΔE00 6.03
Midnight Blue
#191970
ΔE00 6.24
Dark Royal Blue
#02066F
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D176B #456B17
analogous
#171B6B #3D176B #67176B
triadic
#3D176B #6B3D17 #176B3D
tetradic
#3D176B #6B171B #456B17 #176B67
square
#3D176B #6B171B #456B17 #176B67
split-complementary
#3D176B #6B6717 #1B6B17
monochromatic
#0E0519 #200C39 #3D176B #5A229D #762DD0
Accessibility & contrast
On white
13.70
#3D176B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#3D176B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D176B
13.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D176B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D176B | 1.00 | 13.70 | 1.53 | 13.70 |
| #FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#322D40
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3d176b; /* rgb */ color: rgb(61, 23, 107); /* oklch */ color: oklch(31.5% 0.136 298.8);
Tailwind
colors: {
custom: {
50: '#785896',
500: '#3d176b',
950: '#000000',
},
}SCSS
$custom: #3d176b; $custom-light: #785896; $custom-dark: #000000;
JSON
{
"hex": "#3d176b",
"rgb": {
"r": 61,
"g": 23,
"b": 107
},
"hsl": {
"h": 267.143,
"s": 64.615,
"l": 25.49
},
"oklch": {
"l": 0.31518,
"c": 0.13572,
"h": 298.8
},
"luminance": 0.02666
}Semantic roles & 50–950 ramp
primary
#3D176B
secondary
#74A13D
accent
#E8409C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E