#2B1F86#2B1F86
#2B1F86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.161 H 278.3°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F86 |
|---|---|
| RGB | rgb(43, 31, 134) |
| HSL | hsl(247, 62%, 32%) |
| HSV | hsv(247, 77%, 53%) |
| CMYK | cmyk(67.9%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.88, 37.74, -55.29) |
| CIE-LCH | lch(20.88, 66.94, 304.32°) |
| OKLab | oklab(33.44% 0.0234 -0.1597) |
| OKLCH | oklch(33.44% 0.161 278.3) |
| XYZ | xyz(5.7879, 3.2143, 22.8650) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.32
Midnight Blue
#191970
ΔE00 4.03
Indigo (survey)
#380282
ΔE00 5.17
Darkblue
#00008B
ΔE00 5.80
Cobalt Blue
#030AA7
ΔE00 5.82
Navy
#000080
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F86 #7A861F
analogous
#1F4786 #2B1F86 #5E1F86
triadic
#2B1F86 #862B1F #1F862B
tetradic
#2B1F86 #861F47 #7A861F #1F865E
square
#2B1F86 #861F47 #7A861F #1F865E
split-complementary
#2B1F86 #865E1F #47861F
monochromatic
#0B0823 #1B1454 #2B1F86 #3B2AB8 #5A4AD5
Accessibility & contrast
On white
12.78
#2B1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2B1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F86
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F86 | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b1f86; /* rgb */ color: rgb(43, 31, 134); /* oklch */ color: oklch(33.4% 0.161 278.3);
Tailwind
colors: {
custom: {
50: '#725daa',
500: '#2b1f86',
950: '#000000',
},
}SCSS
$custom: #2b1f86; $custom-light: #725daa; $custom-dark: #000000;
JSON
{
"hex": "#2b1f86",
"rgb": {
"r": 43,
"g": 31,
"b": 134
},
"hsl": {
"h": 246.99,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33441,
"c": 0.16138,
"h": 278.3
},
"luminance": 0.03215
}Semantic roles & 50–950 ramp
primary
#2B1F86
secondary
#ABB849
accent
#E542D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F