#3F168F#3F168F
#3F168F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.178 H 288.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).
Color values
| HEX | #3F168F |
|---|---|
| RGB | rgb(63, 22, 143) |
| HSL | hsl(260, 73%, 32%) |
| HSV | hsv(260, 85%, 56%) |
| CMYK | cmyk(55.9%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(22.35, 47.17, -58.43) |
| CIE-LCH | lch(22.35, 75.09, 308.92°) |
| OKLab | oklab(35.23% 0.0576 -0.1681) |
| OKLCH | oklch(35.23% 0.178 288.9) |
| XYZ | xyz(7.2933, 3.6134, 26.2944) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.32
Indigo
#4B0082
ΔE00 3.96
Indigo Blue
#3A18B1
ΔE00 4.82
Royal
#0C1793
ΔE00 4.99
Cobalt Blue
#030AA7
ΔE00 5.56
Ultramarine
#2000B1
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F168F #668F16
analogous
#16298F #3F168F #7C168F
triadic
#3F168F #8F3F16 #168F3F
tetradic
#3F168F #8F1629 #668F16 #168F7C
square
#3F168F #8F1629 #668F16 #168F7C
split-complementary
#3F168F #8F7C16 #298F16
monochromatic
#100625 #280E5A #3F168F #561EC4 #753EE1
Accessibility & contrast
On white
12.19
#3F168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3F168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F168F
12.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F168F | 1.00 | 12.19 | 1.72 | 12.19 |
| #FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#1E3B54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3f168f; /* rgb */ color: rgb(63, 22, 143); /* oklch */ color: oklch(35.2% 0.178 288.9);
Tailwind
colors: {
custom: {
50: '#7e5ab1',
500: '#3f168f',
950: '#000000',
},
}SCSS
$custom: #3f168f; $custom-light: #7e5ab1; $custom-dark: #000000;
JSON
{
"hex": "#3f168f",
"rgb": {
"r": 63,
"g": 22,
"b": 143
},
"hsl": {
"h": 260.331,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.35234,
"c": 0.17773,
"h": 288.9
},
"luminance": 0.03614
}Semantic roles & 50–950 ramp
primary
#3F168F
secondary
#95C13F
accent
#F038B2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980