#2B1880#2B1880
#2B1880 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.161 H 280.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1880 |
|---|---|
| RGB | rgb(43, 24, 128) |
| HSL | hsl(251, 68%, 30%) |
| HSV | hsv(251, 81%, 50%) |
| CMYK | cmyk(66.4%, 81.3%, 0%, 49.8%) |
| CIE-LAB | lab(18.91, 39.57, -54.76) |
| CIE-LCH | lch(18.91, 67.56, 305.85°) |
| OKLab | oklab(31.86% 0.0293 -0.158) |
| OKLCH | oklch(31.86% 0.161 280.5) |
| XYZ | xyz(5.2179, 2.7250, 20.6689) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.48
Royal
#0C1793
ΔE00 3.62
Indigo (survey)
#380282
ΔE00 3.75
Darkblue
#00008B
ΔE00 4.80
Navy
#000080
ΔE00 4.88
Dark Royal Blue
#02066F
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1880 #6D8018
analogous
#183980 #2B1880 #5F1880
triadic
#2B1880 #802B18 #18802B
tetradic
#2B1880 #801839 #6D8018 #18805F
square
#2B1880 #801839 #6D8018 #18805F
split-complementary
#2B1880 #805F18 #398018
monochromatic
#09051A #1A0E4C #2B1880 #3C22B4 #5639DA
Accessibility & contrast
On white
13.59
#2B1880 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2B1880 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1880
13.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1880 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1880 | 1.00 | 13.59 | 1.55 | 13.59 |
| #FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b1880; /* rgb */ color: rgb(43, 24, 128); /* oklch */ color: oklch(31.9% 0.161 280.5);
Tailwind
colors: {
custom: {
50: '#7158a6',
500: '#2b1880',
950: '#000000',
},
}SCSS
$custom: #2b1880; $custom-light: #7158a6; $custom-dark: #000000;
JSON
{
"hex": "#2b1880",
"rgb": {
"r": 43,
"g": 24,
"b": 128
},
"hsl": {
"h": 250.962,
"s": 68.421,
"l": 29.804
},
"oklch": {
"l": 0.3186,
"c": 0.16074,
"h": 280.5
},
"luminance": 0.02725
}Semantic roles & 50–950 ramp
primary
#2B1880
secondary
#9FB440
accent
#EB3DCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F