#2B1981#2B1981
#2B1981 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.161 H 280.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1981 |
|---|---|
| RGB | rgb(43, 25, 129) |
| HSL | hsl(250, 68%, 30%) |
| HSV | hsv(250, 81%, 51%) |
| CMYK | cmyk(66.7%, 80.6%, 0%, 49.4%) |
| CIE-LAB | lab(19.20, 39.37, -54.91) |
| CIE-LCH | lch(19.20, 67.57, 305.64°) |
| OKLab | oklab(32.1% 0.0284 -0.1585) |
| OKLCH | oklch(32.1% 0.161 280.2) |
| XYZ | xyz(5.3051, 2.7934, 21.0242) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.51
Midnight Blue
#191970
ΔE00 3.53
Indigo (survey)
#380282
ΔE00 3.93
Darkblue
#00008B
ΔE00 4.90
Navy
#000080
ΔE00 5.03
Dark Royal Blue
#02066F
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1981 #6F8119
analogous
#193B81 #2B1981 #5F1981
triadic
#2B1981 #812B19 #19812B
tetradic
#2B1981 #81193B #6F8119 #19815F
square
#2B1981 #81193B #6F8119 #19815F
split-complementary
#2B1981 #815F19 #3B8119
monochromatic
#09051A #1A0F4E #2B1981 #3C23B4 #573BD9
Accessibility & contrast
On white
13.47
#2B1981 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2B1981 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1981
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1981 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1981 | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1981; /* rgb */ color: rgb(43, 25, 129); /* oklch */ color: oklch(32.1% 0.161 280.2);
Tailwind
colors: {
custom: {
50: '#7159a7',
500: '#2b1981',
950: '#000000',
},
}SCSS
$custom: #2b1981; $custom-light: #7159a7; $custom-dark: #000000;
JSON
{
"hex": "#2b1981",
"rgb": {
"r": 43,
"g": 25,
"b": 129
},
"hsl": {
"h": 250.385,
"s": 67.532,
"l": 30.196
},
"oklch": {
"l": 0.32096,
"c": 0.16105,
"h": 280.2
},
"luminance": 0.02794
}Semantic roles & 50–950 ramp
primary
#2B1981
secondary
#A1B541
accent
#EA3DCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F