#2F1F76#2F1F76
#2F1F76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.140 H 283.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F76 |
|---|---|
| RGB | rgb(47, 31, 118) |
| HSL | hsl(251, 58%, 29%) |
| HSV | hsv(251, 74%, 46%) |
| CMYK | cmyk(60.2%, 73.7%, 0%, 53.7%) |
| CIE-LAB | lab(19.61, 33.01, -47.21) |
| CIE-LCH | lch(19.61, 57.61, 304.96°) |
| OKLab | oklab(32.13% 0.033 -0.1359) |
| OKLCH | oklch(32.13% 0.14 283.6) |
| XYZ | xyz(4.9313, 2.8920, 17.4344) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.08
Indigo (survey)
#380282
ΔE00 5.59
Royal
#0C1793
ΔE00 5.71
Dark Royal Blue
#02066F
ΔE00 6.31
Darkblue (survey)
#030764
ΔE00 6.65
Deep Blue
#040273
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F76 #66761F
analogous
#1F3B76 #2F1F76 #5B1F76
triadic
#2F1F76 #762F1F #1F762F
tetradic
#2F1F76 #761F3B #66761F #1F765B
square
#2F1F76 #761F3B #66761F #1F765B
split-complementary
#2F1F76 #765B1F #3B761F
monochromatic
#0A0618 #1C1246 #2F1F76 #422CA6 #5C42CD
Accessibility & contrast
On white
13.30
#2F1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F76
13.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F76 | 1.00 | 13.30 | 1.58 | 13.30 |
| #FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#073648
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1f76; /* rgb */ color: rgb(47, 31, 118); /* oklch */ color: oklch(32.1% 0.140 283.6);
Tailwind
colors: {
custom: {
50: '#705c9e',
500: '#2f1f76',
950: '#000000',
},
}SCSS
$custom: #2f1f76; $custom-light: #705c9e; $custom-dark: #000000;
JSON
{
"hex": "#2f1f76",
"rgb": {
"r": 47,
"g": 31,
"b": 118
},
"hsl": {
"h": 251.034,
"s": 58.389,
"l": 29.216
},
"oklch": {
"l": 0.32131,
"c": 0.1399,
"h": 283.6
},
"luminance": 0.02892
}Semantic roles & 50–950 ramp
primary
#2F1F76
secondary
#98AA47
accent
#E246C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E