#2F1B81#2F1B81
#2F1B81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.158 H 282.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B81 |
|---|---|
| RGB | rgb(47, 27, 129) |
| HSL | hsl(252, 65%, 31%) |
| HSV | hsv(252, 79%, 51%) |
| CMYK | cmyk(63.6%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(19.93, 38.80, -53.68) |
| CIE-LCH | lch(19.93, 66.24, 305.86°) |
| OKLab | oklab(32.7% 0.0334 -0.1548) |
| OKLCH | oklch(32.7% 0.158 282.2) |
| XYZ | xyz(5.5254, 2.9728, 21.0473) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.81
Royal
#0C1793
ΔE00 3.94
Indigo (survey)
#380282
ΔE00 4.05
Darkblue
#00008B
ΔE00 5.49
Navy
#000080
ΔE00 5.65
Dark Royal Blue
#02066F
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B81 #6D811B
analogous
#1B3A81 #2F1B81 #621B81
triadic
#2F1B81 #812F1B #1B812F
tetradic
#2F1B81 #811B3A #6D811B #1B8162
square
#2F1B81 #811B3A #6D811B #1B8162
split-complementary
#2F1B81 #81621B #3A811B
monochromatic
#0A061C #1D104E #2F1B81 #4126B4 #5D3FD7
Accessibility & contrast
On white
13.17
#2F1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B81
13.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B81 | 1.00 | 13.17 | 1.59 | 13.17 |
| #FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1b81; /* rgb */ color: rgb(47, 27, 129); /* oklch */ color: oklch(32.7% 0.158 282.2);
Tailwind
colors: {
custom: {
50: '#735aa7',
500: '#2f1b81',
950: '#000000',
},
}SCSS
$custom: #2f1b81; $custom-light: #735aa7; $custom-dark: #000000;
JSON
{
"hex": "#2f1b81",
"rgb": {
"r": 47,
"g": 27,
"b": 129
},
"hsl": {
"h": 251.765,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.32704,
"c": 0.15838,
"h": 282.2
},
"luminance": 0.02973
}Semantic roles & 50–950 ramp
primary
#2F1B81
secondary
#9EB543
accent
#E83FC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F