#2F1856#2F1856
#2F1856 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.106 H 295.8°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1856 |
|---|---|
| RGB | rgb(47, 24, 86) |
| HSL | hsl(262, 56%, 22%) |
| HSV | hsv(262, 72%, 34%) |
| CMYK | cmyk(45.3%, 72.1%, 0%, 66.3%) |
| CIE-LAB | lab(15.11, 26.98, -33.50) |
| CIE-LCH | lch(15.11, 43.02, 308.84°) |
| OKLab | oklab(28% 0.0462 -0.0957) |
| OKLCH | oklch(28% 0.106 295.8) |
| XYZ | xyz(3.1782, 1.9294, 9.0073) |
| Luminance | 0.0193 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.34
Midnight Blue
#191970
ΔE00 6.79
Dark Purple
#35063E
ΔE00 7.21
Dark Violet
#34013F
ΔE00 7.26
Night Blue
#040348
ΔE00 7.29
Midnight Purple
#280137
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1856 #3F5618
analogous
#182056 #2F1856 #4E1856
triadic
#2F1856 #562F18 #18562F
tetradic
#2F1856 #561820 #3F5618 #18564E
square
#2F1856 #561820 #3F5618 #18564E
split-complementary
#2F1856 #564E18 #205618
monochromatic
#0D0718 #150B26 #2F1856 #492586 #6333B6
Accessibility & contrast
On white
15.15
#2F1856 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2F1856 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1856
15.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1856 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1856 | 1.00 | 15.15 | 1.39 | 15.15 |
| #FFFFFF | 15.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#252734
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2f1856; /* rgb */ color: rgb(47, 24, 86); /* oklch */ color: oklch(28.0% 0.106 295.8);
Tailwind
colors: {
custom: {
50: '#6b5686',
500: '#2f1856',
950: '#000000',
},
}SCSS
$custom: #2f1856; $custom-light: #6b5686; $custom-dark: #000000;
JSON
{
"hex": "#2f1856",
"rgb": {
"r": 47,
"g": 24,
"b": 86
},
"hsl": {
"h": 262.258,
"s": 56.364,
"l": 21.569
},
"oklch": {
"l": 0.27997,
"c": 0.10626,
"h": 295.8
},
"luminance": 0.01929
}Semantic roles & 50–950 ramp
primary
#2F1856
secondary
#6F8D3D
accent
#E048A7
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C