#2F1652#2F1652
#2F1652 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.104 H 298.3°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1652 |
|---|---|
| RGB | rgb(47, 22, 82) |
| HSL | hsl(265, 58%, 20%) |
| HSV | hsv(265, 73%, 32%) |
| CMYK | cmyk(42.7%, 73.2%, 0%, 67.8%) |
| CIE-LAB | lab(14.33, 26.97, -32.06) |
| CIE-LCH | lch(14.33, 41.89, 310.07°) |
| OKLab | oklab(27.33% 0.0493 -0.0914) |
| OKLCH | oklch(27.33% 0.104 298.3) |
| XYZ | xyz(2.9818, 1.7873, 8.1689) |
| Luminance | 0.0179 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.44
Dark Purple
#35063E
ΔE00 6.32
Dark Violet
#34013F
ΔE00 6.40
Midnight Purple
#280137
ΔE00 6.53
Deep Purple
#36013F
ΔE00 6.69
Night Blue
#040348
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1652 #395216
analogous
#161B52 #2F1652 #4D1652
triadic
#2F1652 #522F16 #16522F
tetradic
#2F1652 #52161B #395216 #16524D
square
#2F1652 #52161B #395216 #16524D
split-complementary
#2F1652 #524D16 #1B5216
monochromatic
#0E0618 #130922 #2F1652 #4B2382 #6630B3
Accessibility & contrast
On white
15.47
#2F1652 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.36
#2F1652 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1652
15.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1652 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1652 | 1.00 | 15.47 | 1.36 | 15.47 |
| #FFFFFF | 15.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#272432
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2f1652; /* rgb */ color: rgb(47, 22, 82); /* oklch */ color: oklch(27.3% 0.104 298.3);
Tailwind
colors: {
custom: {
50: '#6b5583',
500: '#2f1652',
950: '#000000',
},
}SCSS
$custom: #2f1652; $custom-light: #6b5583; $custom-dark: #000000;
JSON
{
"hex": "#2f1652",
"rgb": {
"r": 47,
"g": 22,
"b": 82
},
"hsl": {
"h": 265,
"s": 57.692,
"l": 20.392
},
"oklch": {
"l": 0.27326,
"c": 0.10387,
"h": 298.3
},
"luminance": 0.01787
}Semantic roles & 50–950 ramp
primary
#2F1652
secondary
#68893A
accent
#E147A1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C