#3F176E#3F176E
#3F176E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.140 H 299.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #3F176E |
|---|---|
| RGB | rgb(63, 23, 110) |
| HSL | hsl(268, 65%, 26%) |
| HSV | hsv(268, 79%, 43%) |
| CMYK | cmyk(42.7%, 79.1%, 0%, 56.9%) |
| CIE-LAB | lab(19.20, 37.70, -42.63) |
| CIE-LCH | lch(19.20, 56.91, 311.49°) |
| OKLab | oklab(32.05% 0.0679 -0.1219) |
| OKLCH | oklch(32.05% 0.14 299.1) |
| XYZ | xyz(5.1701, 2.7953, 15.0160) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.90
Indigo
#4B0082
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 4.96
Midnight Blue
#191970
ΔE00 6.40
Dark Indigo
#1F0954
ΔE00 6.49
Dark Royal Blue
#02066F
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F176E #466E17
analogous
#171A6E #3F176E #6A176E
triadic
#3F176E #6E3F17 #176E3F
tetradic
#3F176E #6E171A #466E17 #176E6A
square
#3F176E #6E171A #466E17 #176E6A
split-complementary
#3F176E #6E6A17 #1A6E17
monochromatic
#0E0519 #220C3B #3F176E #5C22A1 #792CD3
Accessibility & contrast
On white
13.47
#3F176E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#3F176E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F176E
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F176E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F176E | 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)
#002F70
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#342E41
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #3f176e; /* rgb */ color: rgb(63, 23, 110); /* oklch */ color: oklch(32.0% 0.140 299.1);
Tailwind
colors: {
custom: {
50: '#795998',
500: '#3f176e',
950: '#000000',
},
}SCSS
$custom: #3f176e; $custom-light: #795998; $custom-dark: #000000;
JSON
{
"hex": "#3f176e",
"rgb": {
"r": 63,
"g": 23,
"b": 110
},
"hsl": {
"h": 267.586,
"s": 65.414,
"l": 26.078
},
"oklch": {
"l": 0.3205,
"c": 0.1395,
"h": 299.1
},
"luminance": 0.02795
}Semantic roles & 50–950 ramp
primary
#3F176E
secondary
#75A43D
accent
#E83F9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E