#2B1884#2B1884
#2B1884 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.166 H 279.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1884 |
|---|---|
| RGB | rgb(43, 24, 132) |
| HSL | hsl(251, 69%, 31%) |
| HSV | hsv(251, 82%, 52%) |
| CMYK | cmyk(67.4%, 81.8%, 0%, 48.2%) |
| CIE-LAB | lab(19.36, 40.82, -56.54) |
| CIE-LCH | lch(19.36, 69.74, 305.83°) |
| OKLab | oklab(32.31% 0.0281 -0.1632) |
| OKLCH | oklch(32.31% 0.166 279.8) |
| XYZ | xyz(5.4864, 2.8324, 22.0829) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.15
Indigo (survey)
#380282
ΔE00 3.71
Midnight Blue
#191970
ΔE00 3.94
Darkblue
#00008B
ΔE00 4.58
Navy
#000080
ΔE00 4.86
Deep Blue
#040273
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1884 #718418
analogous
#183B84 #2B1884 #611884
triadic
#2B1884 #842B18 #18842B
tetradic
#2B1884 #84183B #718418 #188461
square
#2B1884 #84183B #718418 #188461
split-complementary
#2B1884 #846118 #3B8418
monochromatic
#09051C #1A0F50 #2B1884 #3C21B8 #573BDB
Accessibility & contrast
On white
13.40
#2B1884 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2B1884 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1884
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1884 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1884 | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1884; /* rgb */ color: rgb(43, 24, 132); /* oklch */ color: oklch(32.3% 0.166 279.8);
Tailwind
colors: {
custom: {
50: '#7259a9',
500: '#2b1884',
950: '#000000',
},
}SCSS
$custom: #2b1884; $custom-light: #7259a9; $custom-dark: #000000;
JSON
{
"hex": "#2b1884",
"rgb": {
"r": 43,
"g": 24,
"b": 132
},
"hsl": {
"h": 250.556,
"s": 69.231,
"l": 30.588
},
"oklch": {
"l": 0.32309,
"c": 0.16565,
"h": 279.8
},
"luminance": 0.02833
}Semantic roles & 50–950 ramp
primary
#2B1884
secondary
#A3B840
accent
#EC3CCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F