#3F197E#3F197E
#3F197E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.156 H 293.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3F197E |
|---|---|
| RGB | rgb(63, 25, 126) |
| HSL | hsl(263, 67%, 30%) |
| HSV | hsv(263, 80%, 49%) |
| CMYK | cmyk(50%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(21.05, 41.17, -49.88) |
| CIE-LCH | lch(21.05, 64.68, 309.53°) |
| OKLab | oklab(33.81% 0.0614 -0.1432) |
| OKLCH | oklch(33.81% 0.156 293.2) |
| XYZ | xyz(6.1624, 3.2582, 20.0388) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.45
Indigo
#4B0082
ΔE00 3.68
Royal Purple (survey)
#4B006E
ΔE00 5.23
Midnight Blue
#191970
ΔE00 5.91
Royal
#0C1793
ΔE00 6.32
Darkblue
#00008B
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F197E #587E19
analogous
#19267E #3F197E #71197E
triadic
#3F197E #7E3F19 #197E3F
tetradic
#3F197E #7E1926 #587E19 #197E71
square
#3F197E #7E1926 #587E19 #197E71
split-complementary
#3F197E #7E7119 #267E19
monochromatic
#0D051A #250F4B #3F197E #5923B1 #753AD8
Accessibility & contrast
On white
12.71
#3F197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3F197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F197E
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F197E | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#2B354B
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f197e; /* rgb */ color: rgb(63, 25, 126); /* oklch */ color: oklch(33.8% 0.156 293.2);
Tailwind
colors: {
custom: {
50: '#7b5ba4',
500: '#3f197e',
950: '#000000',
},
}SCSS
$custom: #3f197e; $custom-light: #7b5ba4; $custom-dark: #000000;
JSON
{
"hex": "#3f197e",
"rgb": {
"r": 63,
"g": 25,
"b": 126
},
"hsl": {
"h": 262.574,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.33807,
"c": 0.15578,
"h": 293.2
},
"luminance": 0.03258
}Semantic roles & 50–950 ramp
primary
#3F197E
secondary
#87B241
accent
#EA3EA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F