#2F1656#2F1656
#2F1656 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.109 H 296.5°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1656 |
|---|---|
| RGB | rgb(47, 22, 86) |
| HSL | hsl(263, 59%, 21%) |
| HSV | hsv(263, 74%, 34%) |
| CMYK | cmyk(45.3%, 74.4%, 0%, 66.3%) |
| CIE-LAB | lab(14.68, 28.17, -34.21) |
| CIE-LCH | lch(14.68, 44.31, 309.47°) |
| OKLab | oklab(27.69% 0.0486 -0.0977) |
| OKLCH | oklch(27.69% 0.109 296.5) |
| XYZ | xyz(3.1385, 1.8500, 8.9940) |
| Luminance | 0.0185 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.93
Midnight Blue
#191970
ΔE00 6.75
Dark Violet
#34013F
ΔE00 6.94
Dark Purple
#35063E
ΔE00 6.99
Night Blue
#040348
ΔE00 7.08
Midnight Purple
#280137
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1656 #3D5616
analogous
#161D56 #2F1656 #4F1656
triadic
#2F1656 #562F16 #16562F
tetradic
#2F1656 #56161D #3D5616 #16564F
square
#2F1656 #56161D #3D5616 #16564F
split-complementary
#2F1656 #564F16 #1D5616
monochromatic
#0D0618 #140A25 #2F1656 #4A2287 #642FB7
Accessibility & contrast
On white
15.33
#2F1656 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2F1656 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1656
15.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1656 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1656 | 1.00 | 15.33 | 1.37 | 15.33 |
| #FFFFFF | 15.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#252634
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2f1656; /* rgb */ color: rgb(47, 22, 86); /* oklch */ color: oklch(27.7% 0.109 296.5);
Tailwind
colors: {
custom: {
50: '#6c5586',
500: '#2f1656',
950: '#000000',
},
}SCSS
$custom: #2f1656; $custom-light: #6c5586; $custom-dark: #000000;
JSON
{
"hex": "#2f1656",
"rgb": {
"r": 47,
"g": 22,
"b": 86
},
"hsl": {
"h": 263.438,
"s": 59.259,
"l": 21.176
},
"oklch": {
"l": 0.27687,
"c": 0.10916,
"h": 296.5
},
"luminance": 0.0185
}Semantic roles & 50–950 ramp
primary
#2F1656
secondary
#6D8D3A
accent
#E245A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C