#3F156B#3F156B
#3F156B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.138 H 300.7°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).
Color values
| HEX | #3F156B |
|---|---|
| RGB | rgb(63, 21, 107) |
| HSL | hsl(269, 67%, 25%) |
| HSV | hsv(269, 80%, 42%) |
| CMYK | cmyk(41.1%, 80.4%, 0%, 58%) |
| CIE-LAB | lab(18.60, 37.83, -41.66) |
| CIE-LCH | lch(18.60, 56.28, 312.24°) |
| OKLab | oklab(31.54% 0.0706 -0.119) |
| OKLCH | oklch(31.54% 0.138 300.7) |
| XYZ | xyz(4.9712, 2.6546, 14.1575) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.57
Indigo
#4B0082
ΔE00 4.78
Indigo (survey)
#380282
ΔE00 5.21
Dark Indigo
#1F0954
ΔE00 6.23
Midnight Blue
#191970
ΔE00 6.72
Dark Royal Blue
#02066F
ΔE00 7.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F156B #416B15
analogous
#15166B #3F156B #6A156B
triadic
#3F156B #6B3F15 #156B3F
tetradic
#3F156B #6B1516 #416B15 #156B6A
square
#3F156B #6B1516 #416B15 #156B6A
split-complementary
#3F156B #6B6A15 #166B15
monochromatic
#0F051A #210B38 #3F156B #5D1F9E #7B29D1
Accessibility & contrast
On white
13.72
#3F156B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#3F156B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F156B
13.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F156B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F156B | 1.00 | 13.72 | 1.53 | 13.72 |
| #FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#352C3F
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3f156b; /* rgb */ color: rgb(63, 21, 107); /* oklch */ color: oklch(31.5% 0.138 300.7);
Tailwind
colors: {
custom: {
50: '#795896',
500: '#3f156b',
950: '#000000',
},
}SCSS
$custom: #3f156b; $custom-light: #795896; $custom-dark: #000000;
JSON
{
"hex": "#3f156b",
"rgb": {
"r": 63,
"g": 21,
"b": 107
},
"hsl": {
"h": 269.302,
"s": 67.188,
"l": 25.098
},
"oklch": {
"l": 0.31543,
"c": 0.13837,
"h": 300.7
},
"luminance": 0.02655
}Semantic roles & 50–950 ramp
primary
#3F156B
secondary
#6FA23A
accent
#EA3E96
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E