#2B1B81#2B1B81
#2B1B81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.159 H 279.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1B81 |
|---|---|
| RGB | rgb(43, 27, 129) |
| HSL | hsl(249, 65%, 31%) |
| HSV | hsv(249, 79%, 51%) |
| CMYK | cmyk(66.7%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(19.57, 38.32, -54.31) |
| CIE-LCH | lch(19.57, 66.46, 305.21°) |
| OKLab | oklab(32.35% 0.0272 -0.1568) |
| OKLCH | oklch(32.35% 0.159 279.8) |
| XYZ | xyz(5.3494, 2.8820, 21.0390) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.43
Royal
#0C1793
ΔE00 3.57
Indigo (survey)
#380282
ΔE00 4.34
Darkblue
#00008B
ΔE00 5.25
Navy
#000080
ΔE00 5.39
Dark Royal Blue
#02066F
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1B81 #71811B
analogous
#1B3E81 #2B1B81 #5E1B81
triadic
#2B1B81 #812B1B #1B812B
tetradic
#2B1B81 #811B3E #71811B #1B815E
square
#2B1B81 #811B3E #71811B #1B815E
split-complementary
#2B1B81 #815E1B #3E811B
monochromatic
#09061C #1A104E #2B1B81 #3C26B4 #573FD7
Accessibility & contrast
On white
13.32
#2B1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2B1B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1B81
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1B81 | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1b81; /* rgb */ color: rgb(43, 27, 129); /* oklch */ color: oklch(32.4% 0.159 279.8);
Tailwind
colors: {
custom: {
50: '#715aa7',
500: '#2b1b81',
950: '#000000',
},
}SCSS
$custom: #2b1b81; $custom-light: #715aa7; $custom-dark: #000000;
JSON
{
"hex": "#2b1b81",
"rgb": {
"r": 43,
"g": 27,
"b": 129
},
"hsl": {
"h": 249.412,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.32353,
"c": 0.15911,
"h": 279.8
},
"luminance": 0.02882
}Semantic roles & 50–950 ramp
primary
#2B1B81
secondary
#A3B543
accent
#E83FCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F