#2F1756#2F1756
#2F1756 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.108 H 296.1°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1756 |
|---|---|
| RGB | rgb(47, 23, 86) |
| HSL | hsl(263, 58%, 21%) |
| HSV | hsv(263, 73%, 34%) |
| CMYK | cmyk(45.3%, 73.3%, 0%, 66.3%) |
| CIE-LAB | lab(14.89, 27.58, -33.86) |
| CIE-LCH | lch(14.89, 43.67, 309.17°) |
| OKLab | oklab(27.84% 0.0475 -0.0967) |
| OKLCH | oklch(27.84% 0.108 296.1) |
| XYZ | xyz(3.1580, 1.8889, 9.0005) |
| Luminance | 0.0189 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.13
Midnight Blue
#191970
ΔE00 6.77
Dark Violet
#34013F
ΔE00 7.09
Dark Purple
#35063E
ΔE00 7.09
Night Blue
#040348
ΔE00 7.18
Midnight Purple
#280137
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1756 #3E5617
analogous
#171F56 #2F1756 #4F1756
triadic
#2F1756 #562F17 #17562F
tetradic
#2F1756 #56171F #3E5617 #17564F
square
#2F1756 #56171F #3E5617 #17564F
split-complementary
#2F1756 #564F17 #1F5617
monochromatic
#0D0618 #150A26 #2F1756 #492486 #6431B7
Accessibility & contrast
On white
15.24
#2F1756 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#2F1756 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1756
15.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1756 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1756 | 1.00 | 15.24 | 1.38 | 15.24 |
| #FFFFFF | 15.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#252634
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2f1756; /* rgb */ color: rgb(47, 23, 86); /* oklch */ color: oklch(27.8% 0.108 296.1);
Tailwind
colors: {
custom: {
50: '#6c5686',
500: '#2f1756',
950: '#000000',
},
}SCSS
$custom: #2f1756; $custom-light: #6c5686; $custom-dark: #000000;
JSON
{
"hex": "#2f1756",
"rgb": {
"r": 47,
"g": 23,
"b": 86
},
"hsl": {
"h": 262.857,
"s": 57.798,
"l": 21.373
},
"oklch": {
"l": 0.2784,
"c": 0.10772,
"h": 296.1
},
"luminance": 0.01889
}Semantic roles & 50–950 ramp
primary
#2F1756
secondary
#6E8D3C
accent
#E147A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C