#2F1642#2F1642
#2F1642 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.082 H 307.9°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1642 |
|---|---|
| RGB | rgb(47, 22, 66) |
| HSL | hsl(274, 50%, 17%) |
| HSV | hsv(274, 67%, 26%) |
| CMYK | cmyk(28.8%, 66.7%, 0%, 74.1%) |
| CIE-LAB | lab(13.06, 22.31, -23.06) |
| CIE-LCH | lch(13.06, 32.08, 314.05°) |
| OKLab | oklab(26% 0.0506 -0.065) |
| OKLCH | oklch(26% 0.082 307.9) |
| XYZ | xyz(2.4424, 1.5715, 5.3279) |
| Luminance | 0.0157 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 4.62
Midnight Purple
#280137
ΔE00 5.13
Very Dark Purple
#2A0134
ΔE00 5.29
Dark Violet
#34013F
ΔE00 5.47
Deep Purple
#36013F
ΔE00 5.63
Eggplant
#380835
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1642 #294216
analogous
#191642 #2F1642 #42163F
triadic
#2F1642 #422F16 #16422F
tetradic
#2F1642 #421916 #294216 #163F42
square
#2F1642 #421916 #294216 #163F42
split-complementary
#2F1642 #3F4216 #164219
monochromatic
#100817 #100817 #2F1642 #502570 #70359E
Accessibility & contrast
On white
15.98
#2F1642 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.31
#2F1642 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1642
15.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1642 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1642 | 1.00 | 15.98 | 1.31 | 15.98 |
| #FFFFFF | 15.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#052143
Deuteranopia (green-blind)
#0F2241
Tritanopia (blue-blind)
#2C1E29
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #2f1642; /* rgb */ color: rgb(47, 22, 66); /* oklch */ color: oklch(26.0% 0.082 307.9);
Tailwind
colors: {
custom: {
50: '#695477',
500: '#2f1642',
950: '#000000',
},
}SCSS
$custom: #2f1642; $custom-light: #695477; $custom-dark: #000000;
JSON
{
"hex": "#2f1642",
"rgb": {
"r": 47,
"g": 22,
"b": 66
},
"hsl": {
"h": 274.091,
"s": 50,
"l": 17.255
},
"oklch": {
"l": 0.26,
"c": 0.08232,
"h": 307.9
},
"luminance": 0.01572
}Semantic roles & 50–950 ramp
primary
#2F1642
secondary
#56793A
accent
#DA4E8A
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B