#2B1F82#2B1F82
#2B1F82 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.156 H 279.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F82 |
|---|---|
| RGB | rgb(43, 31, 130) |
| HSL | hsl(247, 61%, 32%) |
| HSV | hsv(247, 76%, 51%) |
| CMYK | cmyk(66.9%, 76.2%, 0%, 49%) |
| CIE-LAB | lab(20.46, 36.41, -53.47) |
| CIE-LCH | lch(20.46, 64.69, 304.26°) |
| OKLab | oklab(33.02% 0.0244 -0.1543) |
| OKLCH | oklch(33.02% 0.156 279) |
| XYZ | xyz(5.5142, 3.1048, 21.4235) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.54
Royal
#0C1793
ΔE00 3.75
Indigo (survey)
#380282
ΔE00 5.22
Darkblue
#00008B
ΔE00 5.99
Navy
#000080
ΔE00 6.18
Dark Royal Blue
#02066F
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F82 #76821F
analogous
#1F4582 #2B1F82 #5D1F82
triadic
#2B1F82 #822B1F #1F822B
tetradic
#2B1F82 #821F45 #76821F #1F825D
square
#2B1F82 #821F45 #76821F #1F825D
split-complementary
#2B1F82 #825D1F #45821F
monochromatic
#0A071F #1B1351 #2B1F82 #3B2BB3 #5948D3
Accessibility & contrast
On white
12.95
#2B1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2B1F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F82
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F82 | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2b1f82; /* rgb */ color: rgb(43, 31, 130); /* oklch */ color: oklch(33.0% 0.156 279.0);
Tailwind
colors: {
custom: {
50: '#715da7',
500: '#2b1f82',
950: '#000000',
},
}SCSS
$custom: #2b1f82; $custom-light: #715da7; $custom-dark: #000000;
JSON
{
"hex": "#2b1f82",
"rgb": {
"r": 43,
"g": 31,
"b": 130
},
"hsl": {
"h": 247.273,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.33015,
"c": 0.15626,
"h": 279
},
"luminance": 0.03105
}Semantic roles & 50–950 ramp
primary
#2B1F82
secondary
#A8B548
accent
#E543D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F