#2B1878#2B1878
#2B1878 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.151 H 282.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1878 |
|---|---|
| RGB | rgb(43, 24, 120) |
| HSL | hsl(252, 67%, 28%) |
| HSV | hsv(252, 80%, 47%) |
| CMYK | cmyk(64.2%, 80%, 0%, 52.9%) |
| CIE-LAB | lab(18.02, 37.04, -51.12) |
| CIE-LCH | lch(18.02, 63.13, 305.93°) |
| OKLab | oklab(30.98% 0.0317 -0.1474) |
| OKLCH | oklch(30.98% 0.151 282.1) |
| XYZ | xyz(4.7120, 2.5226, 18.0043) |
| Luminance | 0.0252 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.75
Indigo (survey)
#380282
ΔE00 4.15
Royal
#0C1793
ΔE00 4.72
Dark Royal Blue
#02066F
ΔE00 4.80
Deep Blue
#040273
ΔE00 5.02
Navy
#000080
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1878 #657818
analogous
#183578 #2B1878 #5B1878
triadic
#2B1878 #782B18 #18782B
tetradic
#2B1878 #781835 #657818 #18785B
square
#2B1878 #781835 #657818 #18785B
split-complementary
#2B1878 #785B18 #357818
monochromatic
#09051A #190E45 #2B1878 #3D22AB #5434D6
Accessibility & contrast
On white
13.96
#2B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2B1878 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1878
13.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1878 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1878 | 1.00 | 13.96 | 1.50 | 13.96 |
| #FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b1878; /* rgb */ color: rgb(43, 24, 120); /* oklch */ color: oklch(31.0% 0.151 282.1);
Tailwind
colors: {
custom: {
50: '#6f58a0',
500: '#2b1878',
950: '#000000',
},
}SCSS
$custom: #2b1878; $custom-light: #6f58a0; $custom-dark: #000000;
JSON
{
"hex": "#2b1878",
"rgb": {
"r": 43,
"g": 24,
"b": 120
},
"hsl": {
"h": 251.875,
"s": 66.667,
"l": 28.235
},
"oklch": {
"l": 0.30978,
"c": 0.15081,
"h": 282.1
},
"luminance": 0.02523
}Semantic roles & 50–950 ramp
primary
#2B1878
secondary
#97AD3F
accent
#EA3EC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F