#3D168F#3D168F
#3D168F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.178 H 287.8°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).
Color values
| HEX | #3D168F |
|---|---|
| RGB | rgb(61, 22, 143) |
| HSL | hsl(259, 73%, 32%) |
| HSV | hsv(259, 85%, 56%) |
| CMYK | cmyk(57.3%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(22.12, 46.94, -58.81) |
| CIE-LCH | lch(22.12, 75.25, 308.59°) |
| OKLab | oklab(35.02% 0.0544 -0.1693) |
| OKLCH | oklch(35.02% 0.178 287.8) |
| XYZ | xyz(7.1678, 3.5487, 26.2885) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.27
Indigo
#4B0082
ΔE00 4.15
Royal
#0C1793
ΔE00 4.69
Indigo Blue
#3A18B1
ΔE00 4.78
Cobalt Blue
#030AA7
ΔE00 5.33
Ultramarine
#2000B1
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D168F #688F16
analogous
#162B8F #3D168F #7A168F
triadic
#3D168F #8F3D16 #168F3D
tetradic
#3D168F #8F162B #688F16 #168F7A
square
#3D168F #8F162B #688F16 #168F7A
split-complementary
#3D168F #8F7A16 #2B8F16
monochromatic
#100625 #260E5A #3D168F #541EC4 #733EE1
Accessibility & contrast
On white
12.28
#3D168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3D168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D168F
12.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D168F | 1.00 | 12.28 | 1.71 | 12.28 |
| #FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#183B54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3d168f; /* rgb */ color: rgb(61, 22, 143); /* oklch */ color: oklch(35.0% 0.178 287.8);
Tailwind
colors: {
custom: {
50: '#7d5ab1',
500: '#3d168f',
950: '#000000',
},
}SCSS
$custom: #3d168f; $custom-light: #7d5ab1; $custom-dark: #000000;
JSON
{
"hex": "#3d168f",
"rgb": {
"r": 61,
"g": 22,
"b": 143
},
"hsl": {
"h": 259.339,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.35022,
"c": 0.17782,
"h": 287.8
},
"luminance": 0.03549
}Semantic roles & 50–950 ramp
primary
#3D168F
secondary
#97C13F
accent
#F038B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980