#2F1879#2F1879
#2F1879 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.151 H 284.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1879 |
|---|---|
| RGB | rgb(47, 24, 121) |
| HSL | hsl(254, 67%, 28%) |
| HSV | hsv(254, 80%, 47%) |
| CMYK | cmyk(61.2%, 80.2%, 0%, 52.5%) |
| CIE-LAB | lab(18.53, 37.87, -50.90) |
| CIE-LCH | lch(18.53, 63.45, 306.65°) |
| OKLab | oklab(31.47% 0.0378 -0.1467) |
| OKLCH | oklch(31.47% 0.151 284.4) |
| XYZ | xyz(4.9491, 2.6378, 18.3338) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.34
Indigo (survey)
#380282
ΔE00 3.79
Royal
#0C1793
ΔE00 4.92
Dark Royal Blue
#02066F
ΔE00 5.21
Deep Blue
#040273
ΔE00 5.35
Navy
#000080
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1879 #627918
analogous
#183179 #2F1879 #5F1879
triadic
#2F1879 #792F18 #18792F
tetradic
#2F1879 #791831 #627918 #18795F
square
#2F1879 #791831 #627918 #18795F
split-complementary
#2F1879 #795F18 #317918
monochromatic
#0A051A #1B0E46 #2F1879 #4322AC #5B35D7
Accessibility & contrast
On white
13.75
#2F1879 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2F1879 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1879
13.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1879 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1879 | 1.00 | 13.75 | 1.53 | 13.75 |
| #FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#033448
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2f1879; /* rgb */ color: rgb(47, 24, 121); /* oklch */ color: oklch(31.5% 0.151 284.4);
Tailwind
colors: {
custom: {
50: '#7258a1',
500: '#2f1879',
950: '#000000',
},
}SCSS
$custom: #2f1879; $custom-light: #7258a1; $custom-dark: #000000;
JSON
{
"hex": "#2f1879",
"rgb": {
"r": 47,
"g": 24,
"b": 121
},
"hsl": {
"h": 254.227,
"s": 66.897,
"l": 28.431
},
"oklch": {
"l": 0.31465,
"c": 0.15148,
"h": 284.4
},
"luminance": 0.02638
}Semantic roles & 50–950 ramp
primary
#2F1879
secondary
#94AE3F
accent
#EA3EC1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F