#2F1B79#2F1B79
#2F1B79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.148 H 283.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B79 |
|---|---|
| RGB | rgb(47, 27, 121) |
| HSL | hsl(253, 64%, 29%) |
| HSV | hsv(253, 78%, 47%) |
| CMYK | cmyk(61.2%, 77.7%, 0%, 52.5%) |
| CIE-LAB | lab(19.09, 36.27, -49.98) |
| CIE-LCH | lch(19.09, 61.76, 305.97°) |
| OKLab | oklab(31.86% 0.0356 -0.144) |
| OKLCH | oklch(31.86% 0.148 283.9) |
| XYZ | xyz(5.0144, 2.7684, 18.3556) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.17
Indigo (survey)
#380282
ΔE00 4.41
Royal
#0C1793
ΔE00 5.00
Dark Royal Blue
#02066F
ΔE00 5.61
Deep Blue
#040273
ΔE00 5.84
Navy
#000080
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B79 #65791B
analogous
#1B3679 #2F1B79 #5E1B79
triadic
#2F1B79 #792F1B #1B792F
tetradic
#2F1B79 #791B36 #65791B #1B795E
square
#2F1B79 #791B36 #65791B #1B795E
split-complementary
#2F1B79 #795E1B #36791B
monochromatic
#0A0619 #1C1047 #2F1B79 #4226AB #5B3BD3
Accessibility & contrast
On white
13.52
#2F1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2F1B79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B79
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B79 | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#023549
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f1b79; /* rgb */ color: rgb(47, 27, 121); /* oklch */ color: oklch(31.9% 0.148 283.9);
Tailwind
colors: {
custom: {
50: '#715aa1',
500: '#2f1b79',
950: '#000000',
},
}SCSS
$custom: #2f1b79; $custom-light: #715aa1; $custom-dark: #000000;
JSON
{
"hex": "#2f1b79",
"rgb": {
"r": 47,
"g": 27,
"b": 121
},
"hsl": {
"h": 252.766,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.31858,
"c": 0.14835,
"h": 283.9
},
"luminance": 0.02769
}Semantic roles & 50–950 ramp
primary
#2F1B79
secondary
#97AD43
accent
#E741C3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F