#3D197F#3D197F
#3D197F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.157 H 291.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #3D197F |
|---|---|
| RGB | rgb(61, 25, 127) |
| HSL | hsl(261, 67%, 30%) |
| HSV | hsv(261, 80%, 50%) |
| CMYK | cmyk(52%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(20.90, 41.15, -50.77) |
| CIE-LCH | lch(20.90, 65.35, 309.02°) |
| OKLab | oklab(33.68% 0.0579 -0.1458) |
| OKLCH | oklch(33.68% 0.157 291.6) |
| XYZ | xyz(6.1018, 3.2194, 20.3745) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.32
Indigo
#4B0082
ΔE00 3.88
Royal Purple (survey)
#4B006E
ΔE00 5.56
Midnight Blue
#191970
ΔE00 5.61
Royal
#0C1793
ΔE00 5.90
Darkblue
#00008B
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D197F #5B7F19
analogous
#19287F #3D197F #70197F
triadic
#3D197F #7F3D19 #197F3D
tetradic
#3D197F #7F1928 #5B7F19 #197F70
square
#3D197F #7F1928 #5B7F19 #197F70
split-complementary
#3D197F #7F7019 #287F19
monochromatic
#0C051A #240F4C #3D197F #5623B2 #723AD8
Accessibility & contrast
On white
12.77
#3D197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#3D197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D197F
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D197F | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#27364C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3d197f; /* rgb */ color: rgb(61, 25, 127); /* oklch */ color: oklch(33.7% 0.157 291.6);
Tailwind
colors: {
custom: {
50: '#7a5aa5',
500: '#3d197f',
950: '#000000',
},
}SCSS
$custom: #3d197f; $custom-light: #7a5aa5; $custom-dark: #000000;
JSON
{
"hex": "#3d197f",
"rgb": {
"r": 61,
"g": 25,
"b": 127
},
"hsl": {
"h": 261.176,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.33678,
"c": 0.1569,
"h": 291.6
},
"luminance": 0.0322
}Semantic roles & 50–950 ramp
primary
#3D197F
secondary
#8BB341
accent
#EA3EAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F