#3D187F#3D187F
#3D187F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.158 H 291.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #3D187F |
|---|---|
| RGB | rgb(61, 24, 127) |
| HSL | hsl(262, 68%, 30%) |
| HSV | hsv(262, 81%, 50%) |
| CMYK | cmyk(52%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(20.74, 41.61, -51.04) |
| CIE-LCH | lch(20.74, 65.85, 309.19°) |
| OKLab | oklab(33.57% 0.0587 -0.1466) |
| OKLCH | oklch(33.57% 0.158 291.8) |
| XYZ | xyz(6.0808, 3.1774, 20.3675) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.14
Indigo
#4B0082
ΔE00 3.72
Royal Purple (survey)
#4B006E
ΔE00 5.44
Midnight Blue
#191970
ΔE00 5.66
Royal
#0C1793
ΔE00 5.90
Darkblue
#00008B
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D187F #5A7F18
analogous
#18277F #3D187F #70187F
triadic
#3D187F #7F3D18 #187F3D
tetradic
#3D187F #7F1827 #5A7F18 #187F70
square
#3D187F #7F1827 #5A7F18 #187F70
split-complementary
#3D187F #7F7018 #277F18
monochromatic
#0C051A #240E4C #3D187F #5622B2 #7238D9
Accessibility & contrast
On white
12.84
#3D187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#3D187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D187F
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D187F | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3d187f; /* rgb */ color: rgb(61, 24, 127); /* oklch */ color: oklch(33.6% 0.158 291.8);
Tailwind
colors: {
custom: {
50: '#7a5aa5',
500: '#3d187f',
950: '#000000',
},
}SCSS
$custom: #3d187f; $custom-light: #7a5aa5; $custom-dark: #000000;
JSON
{
"hex": "#3d187f",
"rgb": {
"r": 61,
"g": 24,
"b": 127
},
"hsl": {
"h": 261.553,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.33566,
"c": 0.1579,
"h": 291.8
},
"luminance": 0.03178
}Semantic roles & 50–950 ramp
primary
#3D187F
secondary
#8AB33F
accent
#EB3DAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F