#3D187E#3D187E
#3D187E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 292.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #3D187E |
|---|---|
| RGB | rgb(61, 24, 126) |
| HSL | hsl(262, 68%, 29%) |
| HSV | hsv(262, 81%, 49%) |
| CMYK | cmyk(51.6%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(20.64, 41.33, -50.56) |
| CIE-LCH | lch(20.64, 65.31, 309.26°) |
| OKLab | oklab(33.47% 0.059 -0.1452) |
| OKLCH | oklch(33.47% 0.157 292.1) |
| XYZ | xyz(6.0159, 3.1515, 20.0259) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.19
Indigo
#4B0082
ΔE00 3.73
Royal Purple (survey)
#4B006E
ΔE00 5.35
Midnight Blue
#191970
ΔE00 5.63
Royal
#0C1793
ΔE00 6.01
Darkblue
#00008B
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D187E #597E18
analogous
#18267E #3D187E #70187E
triadic
#3D187E #7E3D18 #187E3D
tetradic
#3D187E #7E1826 #597E18 #187E70
square
#3D187E #7E1826 #597E18 #187E70
split-complementary
#3D187E #7E7018 #267E18
monochromatic
#0C051A #240E4B #3D187E #5622B1 #7237D9
Accessibility & contrast
On white
12.88
#3D187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3D187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D187E
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D187E | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3d187e; /* rgb */ color: rgb(61, 24, 126); /* oklch */ color: oklch(33.5% 0.157 292.1);
Tailwind
colors: {
custom: {
50: '#7a5aa4',
500: '#3d187e',
950: '#000000',
},
}SCSS
$custom: #3d187e; $custom-light: #7a5aa4; $custom-dark: #000000;
JSON
{
"hex": "#3d187e",
"rgb": {
"r": 61,
"g": 24,
"b": 126
},
"hsl": {
"h": 261.765,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.33466,
"c": 0.15674,
"h": 292.1
},
"luminance": 0.03152
}Semantic roles & 50–950 ramp
primary
#3D187E
secondary
#89B23F
accent
#EB3DAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F