#2B1489#2B1489
#2B1489 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.175 H 279.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1489 |
|---|---|
| RGB | rgb(43, 20, 137) |
| HSL | hsl(252, 75%, 31%) |
| HSV | hsv(252, 85%, 54%) |
| CMYK | cmyk(68.6%, 85.4%, 0%, 46.3%) |
| CIE-LAB | lab(19.31, 44.22, -59.78) |
| CIE-LCH | lch(19.31, 74.35, 306.49°) |
| OKLab | oklab(32.44% 0.0284 -0.1726) |
| OKLCH | oklch(32.44% 0.175 279.3) |
| XYZ | xyz(5.7603, 2.8196, 23.9027) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.79
Indigo (survey)
#380282
ΔE00 3.20
Darkblue
#00008B
ΔE00 3.89
Navy
#000080
ΔE00 4.43
Cobalt Blue
#030AA7
ΔE00 4.49
Midnight Blue
#191970
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1489 #728914
analogous
#143789 #2B1489 #651489
triadic
#2B1489 #892B14 #14892B
tetradic
#2B1489 #891437 #728914 #148965
square
#2B1489 #891437 #728914 #148965
split-complementary
#2B1489 #896514 #378914
monochromatic
#09041E #1A0C54 #2B1489 #3C1CBE #5836E2
Accessibility & contrast
On white
13.43
#2B1489 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2B1489 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1489
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1489 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1489 | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1489; /* rgb */ color: rgb(43, 20, 137); /* oklch */ color: oklch(32.4% 0.175 279.3);
Tailwind
colors: {
custom: {
50: '#7457ad',
500: '#2b1489',
950: '#000000',
},
}SCSS
$custom: #2b1489; $custom-light: #7457ad; $custom-dark: #000000;
JSON
{
"hex": "#2b1489",
"rgb": {
"r": 43,
"g": 20,
"b": 137
},
"hsl": {
"h": 251.795,
"s": 74.522,
"l": 30.784
},
"oklch": {
"l": 0.32444,
"c": 0.17491,
"h": 279.3
},
"luminance": 0.0282
}Semantic roles & 50–950 ramp
primary
#2B1489
secondary
#A4BD3C
accent
#F137CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F