#3D167F#3D167F
#3D167F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.160 H 292.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).
Color values
| HEX | #3D167F |
|---|---|
| RGB | rgb(61, 22, 127) |
| HSL | hsl(262, 70%, 29%) |
| HSV | hsv(262, 83%, 50%) |
| CMYK | cmyk(52%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(20.43, 42.50, -51.54) |
| CIE-LCH | lch(20.43, 66.81, 309.51°) |
| OKLab | oklab(33.35% 0.0602 -0.1481) |
| OKLCH | oklch(33.35% 0.16 292.1) |
| XYZ | xyz(6.0411, 3.0980, 20.3542) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.79
Indigo
#4B0082
ΔE00 3.44
Royal Purple (survey)
#4B006E
ΔE00 5.24
Midnight Blue
#191970
ΔE00 5.76
Royal
#0C1793
ΔE00 5.91
Darkblue
#00008B
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D167F #587F16
analogous
#16237F #3D167F #72167F
triadic
#3D167F #7F3D16 #167F3D
tetradic
#3D167F #7F1623 #587F16 #167F72
square
#3D167F #7F1623 #587F16 #167F72
split-complementary
#3D167F #7F7216 #237F16
monochromatic
#0D051A #240D4B #3D167F #561FB3 #7234DC
Accessibility & contrast
On white
12.97
#3D167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3D167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D167F
12.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D167F | 1.00 | 12.97 | 1.62 | 12.97 |
| #FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3d167f; /* rgb */ color: rgb(61, 22, 127); /* oklch */ color: oklch(33.4% 0.160 292.1);
Tailwind
colors: {
custom: {
50: '#7b59a5',
500: '#3d167f',
950: '#000000',
},
}SCSS
$custom: #3d167f; $custom-light: #7b59a5; $custom-dark: #000000;
JSON
{
"hex": "#3d167f",
"rgb": {
"r": 61,
"g": 22,
"b": 127
},
"hsl": {
"h": 262.286,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.33352,
"c": 0.15982,
"h": 292.1
},
"luminance": 0.03098
}Semantic roles & 50–950 ramp
primary
#3D167F
secondary
#88B43D
accent
#ED3BAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F