#3F156C#3F156C
#3F156C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.140 H 300.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).
Color values
| HEX | #3F156C |
|---|---|
| RGB | rgb(63, 21, 108) |
| HSL | hsl(269, 67%, 25%) |
| HSV | hsv(269, 81%, 42%) |
| CMYK | cmyk(41.7%, 80.6%, 0%, 57.6%) |
| CIE-LAB | lab(18.70, 38.10, -42.16) |
| CIE-LCH | lch(18.70, 56.83, 312.10°) |
| OKLab | oklab(31.64% 0.0703 -0.1205) |
| OKLCH | oklch(31.64% 0.14 300.3) |
| XYZ | xyz(5.0242, 2.6758, 14.4362) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.57
Indigo
#4B0082
ΔE00 4.63
Indigo (survey)
#380282
ΔE00 5.04
Dark Indigo
#1F0954
ΔE00 6.29
Midnight Blue
#191970
ΔE00 6.64
Dark Royal Blue
#02066F
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F156C #426C15
analogous
#15166C #3F156C #6B156C
triadic
#3F156C #6C3F15 #156C3F
tetradic
#3F156C #6C1516 #426C15 #156C6B
square
#3F156C #6C1516 #426C15 #156C6B
split-complementary
#3F156C #6C6B15 #166C15
monochromatic
#0F051A #210B39 #3F156C #5D1F9F #7B29D2
Accessibility & contrast
On white
13.68
#3F156C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#3F156C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F156C
13.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F156C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F156C | 1.00 | 13.68 | 1.54 | 13.68 |
| #FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#352C40
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3f156c; /* rgb */ color: rgb(63, 21, 108); /* oklch */ color: oklch(31.6% 0.140 300.3);
Tailwind
colors: {
custom: {
50: '#795897',
500: '#3f156c',
950: '#000000',
},
}SCSS
$custom: #3f156c; $custom-light: #795897; $custom-dark: #000000;
JSON
{
"hex": "#3f156c",
"rgb": {
"r": 63,
"g": 21,
"b": 108
},
"hsl": {
"h": 268.966,
"s": 67.442,
"l": 25.294
},
"oklch": {
"l": 0.31636,
"c": 0.1395,
"h": 300.3
},
"luminance": 0.02676
}Semantic roles & 50–950 ramp
primary
#3F156C
secondary
#70A33A
accent
#EA3D97
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E