#2B1877#2B1877
#2B1877 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.150 H 282.3°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1877 |
|---|---|
| RGB | rgb(43, 24, 119) |
| HSL | hsl(252, 66%, 28%) |
| HSV | hsv(252, 80%, 47%) |
| CMYK | cmyk(63.9%, 79.8%, 0%, 53.3%) |
| CIE-LAB | lab(17.91, 36.72, -50.66) |
| CIE-LCH | lch(17.91, 62.57, 305.94°) |
| OKLab | oklab(30.87% 0.032 -0.1461) |
| OKLCH | oklch(30.87% 0.15 282.3) |
| XYZ | xyz(4.6516, 2.4984, 17.6863) |
| Luminance | 0.0250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.69
Indigo (survey)
#380282
ΔE00 4.22
Dark Royal Blue
#02066F
ΔE00 4.79
Royal
#0C1793
ΔE00 4.87
Deep Blue
#040273
ΔE00 5.03
Navy
#000080
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1877 #647718
analogous
#183477 #2B1877 #5A1877
triadic
#2B1877 #772B18 #18772B
tetradic
#2B1877 #771834 #647718 #18775A
square
#2B1877 #771834 #647718 #18775A
split-complementary
#2B1877 #775A18 #347718
monochromatic
#090519 #190E44 #2B1877 #3D22AA #5433D6
Accessibility & contrast
On white
14.00
#2B1877 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2B1877 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1877
14.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1877 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1877 | 1.00 | 14.00 | 1.50 | 14.00 |
| #FFFFFF | 14.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b1877; /* rgb */ color: rgb(43, 24, 119); /* oklch */ color: oklch(30.9% 0.150 282.3);
Tailwind
colors: {
custom: {
50: '#6f589f',
500: '#2b1877',
950: '#000000',
},
}SCSS
$custom: #2b1877; $custom-light: #6f589f; $custom-dark: #000000;
JSON
{
"hex": "#2b1877",
"rgb": {
"r": 43,
"g": 24,
"b": 119
},
"hsl": {
"h": 252,
"s": 66.434,
"l": 28.039
},
"oklch": {
"l": 0.30869,
"c": 0.14955,
"h": 282.3
},
"luminance": 0.02499
}Semantic roles & 50–950 ramp
primary
#2B1877
secondary
#96AC3F
accent
#E93EC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E