#3D186F#3D186F
#3D186F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.139 H 297.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #3D186F |
|---|---|
| RGB | rgb(61, 24, 111) |
| HSL | hsl(266, 64%, 26%) |
| HSV | hsv(266, 78%, 44%) |
| CMYK | cmyk(45%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(19.20, 37.13, -43.31) |
| CIE-LCH | lch(19.20, 57.04, 310.61°) |
| OKLab | oklab(32.01% 0.0635 -0.1239) |
| OKLCH | oklch(32.01% 0.139 297.1) |
| XYZ | xyz(5.1196, 2.7930, 15.3052) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.36
Indigo
#4B0082
ΔE00 4.76
Indigo (survey)
#380282
ΔE00 4.81
Midnight Blue
#191970
ΔE00 5.89
Dark Indigo
#1F0954
ΔE00 6.36
Dark Royal Blue
#02066F
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D186F #4A6F18
analogous
#181F6F #3D186F #69186F
triadic
#3D186F #6F3D18 #186F3D
tetradic
#3D186F #6F181F #4A6F18 #186F69
square
#3D186F #6F181F #4A6F18 #186F69
split-complementary
#3D186F #6F6918 #1F6F18
monochromatic
#0E0519 #210D3D #3D186F #5923A1 #752FD2
Accessibility & contrast
On white
13.47
#3D186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#3D186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D186F
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D186F | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#302F42
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #3d186f; /* rgb */ color: rgb(61, 24, 111); /* oklch */ color: oklch(32.0% 0.139 297.1);
Tailwind
colors: {
custom: {
50: '#785999',
500: '#3d186f',
950: '#000000',
},
}SCSS
$custom: #3d186f; $custom-light: #785999; $custom-dark: #000000;
JSON
{
"hex": "#3d186f",
"rgb": {
"r": 61,
"g": 24,
"b": 111
},
"hsl": {
"h": 265.517,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.32011,
"c": 0.13924,
"h": 297.1
},
"luminance": 0.02793
}Semantic roles & 50–950 ramp
primary
#3D186F
secondary
#79A53E
accent
#E740A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E