#2F1852#2F1852
#2F1852 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.101 H 297.6°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1852 |
|---|---|
| RGB | rgb(47, 24, 82) |
| HSL | hsl(264, 55%, 21%) |
| HSV | hsv(264, 71%, 32%) |
| CMYK | cmyk(42.7%, 70.7%, 0%, 67.8%) |
| CIE-LAB | lab(14.77, 25.75, -31.34) |
| CIE-LCH | lch(14.77, 40.57, 309.41°) |
| OKLab | oklab(27.64% 0.0468 -0.0893) |
| OKLCH | oklch(27.64% 0.101 297.6) |
| XYZ | xyz(3.0215, 1.8668, 8.1821) |
| Luminance | 0.0187 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.85
Dark Purple
#35063E
ΔE00 6.60
Dark Violet
#34013F
ΔE00 6.77
Midnight Purple
#280137
ΔE00 6.84
Deep Purple
#36013F
ΔE00 7.05
Night Blue
#040348
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1852 #3B5218
analogous
#181E52 #2F1852 #4C1852
triadic
#2F1852 #522F18 #18522F
tetradic
#2F1852 #52181E #3B5218 #18524C
square
#2F1852 #52181E #3B5218 #18524C
split-complementary
#2F1852 #524C18 #1E5218
monochromatic
#0E0718 #140A23 #2F1852 #4A2681 #6534B1
Accessibility & contrast
On white
15.29
#2F1852 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2F1852 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1852
15.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1852 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1852 | 1.00 | 15.29 | 1.37 | 15.29 |
| #FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#272532
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2f1852; /* rgb */ color: rgb(47, 24, 82); /* oklch */ color: oklch(27.6% 0.101 297.6);
Tailwind
colors: {
custom: {
50: '#6b5683',
500: '#2f1852',
950: '#000000',
},
}SCSS
$custom: #2f1852; $custom-light: #6b5683; $custom-dark: #000000;
JSON
{
"hex": "#2f1852",
"rgb": {
"r": 47,
"g": 24,
"b": 82
},
"hsl": {
"h": 263.793,
"s": 54.717,
"l": 20.784
},
"oklch": {
"l": 0.27645,
"c": 0.10082,
"h": 297.6
},
"luminance": 0.01867
}Semantic roles & 50–950 ramp
primary
#2F1852
secondary
#6B893D
accent
#DE4AA3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C