#2B1588#2B1588
#2B1588 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.173 H 279.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1588 |
|---|---|
| RGB | rgb(43, 21, 136) |
| HSL | hsl(251, 73%, 31%) |
| HSV | hsv(251, 85%, 53%) |
| CMYK | cmyk(68.4%, 84.6%, 0%, 46.7%) |
| CIE-LAB | lab(19.34, 43.47, -59.10) |
| CIE-LCH | lch(19.34, 73.37, 306.34°) |
| OKLab | oklab(32.43% 0.0283 -0.1706) |
| OKLCH | oklch(32.43% 0.173 279.4) |
| XYZ | xyz(5.7069, 2.8270, 23.5327) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.83
Indigo (survey)
#380282
ΔE00 3.30
Darkblue
#00008B
ΔE00 4.03
Navy
#000080
ΔE00 4.51
Midnight Blue
#191970
ΔE00 4.62
Cobalt Blue
#030AA7
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1588 #728815
analogous
#153988 #2B1588 #641588
triadic
#2B1588 #882B15 #15882B
tetradic
#2B1588 #881539 #728815 #158864
square
#2B1588 #881539 #728815 #158864
split-complementary
#2B1588 #886415 #398815
monochromatic
#09051E #1A0D53 #2B1588 #3C1DBD #5837E0
Accessibility & contrast
On white
13.42
#2B1588 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2B1588 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1588
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1588 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1588 | 1.00 | 13.42 | 1.57 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1588; /* rgb */ color: rgb(43, 21, 136); /* oklch */ color: oklch(32.4% 0.173 279.4);
Tailwind
colors: {
custom: {
50: '#7357ac',
500: '#2b1588',
950: '#000000',
},
}SCSS
$custom: #2b1588; $custom-light: #7357ac; $custom-dark: #000000;
JSON
{
"hex": "#2b1588",
"rgb": {
"r": 43,
"g": 21,
"b": 136
},
"hsl": {
"h": 251.478,
"s": 73.248,
"l": 30.784
},
"oklch": {
"l": 0.3243,
"c": 0.17296,
"h": 279.4
},
"luminance": 0.02827
}Semantic roles & 50–950 ramp
primary
#2B1588
secondary
#A4BC3D
accent
#F038CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F