#2B1A7E#2B1A7E
#2B1A7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.156 H 280.6°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1A7E |
|---|---|
| RGB | rgb(43, 26, 126) |
| HSL | hsl(250, 66%, 30%) |
| HSV | hsv(250, 79%, 49%) |
| CMYK | cmyk(65.9%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(19.05, 37.89, -53.25) |
| CIE-LCH | lch(19.05, 65.36, 305.43°) |
| OKLab | oklab(31.89% 0.0287 -0.1537) |
| OKLCH | oklch(31.89% 0.156 280.6) |
| XYZ | xyz(5.1304, 2.7583, 19.9967) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.14
Royal
#0C1793
ΔE00 3.92
Indigo (survey)
#380282
ΔE00 4.21
Dark Royal Blue
#02066F
ΔE00 5.27
Darkblue
#00008B
ΔE00 5.27
Navy
#000080
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1A7E #6D7E1A
analogous
#1A3B7E #2B1A7E #5D1A7E
triadic
#2B1A7E #7E2B1A #1A7E2B
tetradic
#2B1A7E #7E1A3B #6D7E1A #1A7E5D
square
#2B1A7E #7E1A3B #6D7E1A #1A7E5D
split-complementary
#2B1A7E #7E5D1A #3B7E1A
monochromatic
#090519 #1A104B #2B1A7E #3C24B1 #563CD7
Accessibility & contrast
On white
13.53
#2B1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2B1A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1A7E
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1A7E | 1.00 | 13.53 | 1.55 | 13.53 |
| #FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b1a7e; /* rgb */ color: rgb(43, 26, 126); /* oklch */ color: oklch(31.9% 0.156 280.6);
Tailwind
colors: {
custom: {
50: '#7159a4',
500: '#2b1a7e',
950: '#000000',
},
}SCSS
$custom: #2b1a7e; $custom-light: #7159a4; $custom-dark: #000000;
JSON
{
"hex": "#2b1a7e",
"rgb": {
"r": 43,
"g": 26,
"b": 126
},
"hsl": {
"h": 250.2,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.31893,
"c": 0.15634,
"h": 280.6
},
"luminance": 0.02759
}Semantic roles & 50–950 ramp
primary
#2B1A7E
secondary
#9FB242
accent
#E93FCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F