#3D187C#3D187C
#3D187C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 292.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3D187C |
|---|---|
| RGB | rgb(61, 24, 124) |
| HSL | hsl(262, 68%, 29%) |
| HSV | hsv(262, 81%, 49%) |
| CMYK | cmyk(50.8%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(20.44, 40.77, -49.62) |
| CIE-LCH | lch(20.44, 64.22, 309.41°) |
| OKLab | oklab(33.27% 0.0596 -0.1424) |
| OKLCH | oklch(33.27% 0.154 292.7) |
| XYZ | xyz(5.8882, 3.1004, 19.3531) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.31
Indigo
#4B0082
ΔE00 3.78
Royal Purple (survey)
#4B006E
ΔE00 5.16
Midnight Blue
#191970
ΔE00 5.58
Royal
#0C1793
ΔE00 6.25
Darkblue
#00008B
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D187C #577C18
analogous
#18257C #3D187C #6F187C
triadic
#3D187C #7C3D18 #187C3D
tetradic
#3D187C #7C1825 #577C18 #187C6F
square
#3D187C #7C1825 #577C18 #187C6F
split-complementary
#3D187C #7C6F18 #257C18
monochromatic
#0D051A #240E49 #3D187C #5622AF #7236D8
Accessibility & contrast
On white
12.96
#3D187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3D187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D187C
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D187C | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#29344A
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3d187c; /* rgb */ color: rgb(61, 24, 124); /* oklch */ color: oklch(33.3% 0.154 292.7);
Tailwind
colors: {
custom: {
50: '#7a5aa3',
500: '#3d187c',
950: '#000000',
},
}SCSS
$custom: #3d187c; $custom-light: #7a5aa3; $custom-dark: #000000;
JSON
{
"hex": "#3d187c",
"rgb": {
"r": 61,
"g": 24,
"b": 124
},
"hsl": {
"h": 262.2,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.33266,
"c": 0.15443,
"h": 292.7
},
"luminance": 0.03101
}Semantic roles & 50–950 ramp
primary
#3D187C
secondary
#87B13F
accent
#EA3DAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F