#2B1F84#2B1F84
#2B1F84 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.159 H 278.7°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F84 |
|---|---|
| RGB | rgb(43, 31, 132) |
| HSL | hsl(247, 62%, 32%) |
| HSV | hsv(247, 77%, 52%) |
| CMYK | cmyk(67.4%, 76.5%, 0%, 48.2%) |
| CIE-LAB | lab(20.67, 37.08, -54.38) |
| CIE-LCH | lch(20.67, 65.82, 304.29°) |
| OKLab | oklab(33.23% 0.0239 -0.157) |
| OKLCH | oklch(33.23% 0.159 278.7) |
| XYZ | xyz(5.6498, 3.1590, 22.1373) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.53
Midnight Blue
#191970
ΔE00 3.78
Indigo (survey)
#380282
ΔE00 5.19
Darkblue
#00008B
ΔE00 5.88
Cobalt Blue
#030AA7
ΔE00 6.08
Navy
#000080
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F84 #78841F
analogous
#1F4684 #2B1F84 #5E1F84
triadic
#2B1F84 #842B1F #1F842B
tetradic
#2B1F84 #841F46 #78841F #1F845E
square
#2B1F84 #841F46 #78841F #1F845E
split-complementary
#2B1F84 #845E1F #46841F
monochromatic
#0B0821 #1B1352 #2B1F84 #3B2BB6 #5A49D4
Accessibility & contrast
On white
12.87
#2B1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2B1F84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F84
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F84 | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b1f84; /* rgb */ color: rgb(43, 31, 132); /* oklch */ color: oklch(33.2% 0.159 278.7);
Tailwind
colors: {
custom: {
50: '#715da9',
500: '#2b1f84',
950: '#000000',
},
}SCSS
$custom: #2b1f84; $custom-light: #715da9; $custom-dark: #000000;
JSON
{
"hex": "#2b1f84",
"rgb": {
"r": 43,
"g": 31,
"b": 132
},
"hsl": {
"h": 247.129,
"s": 61.963,
"l": 31.961
},
"oklch": {
"l": 0.33227,
"c": 0.15883,
"h": 278.7
},
"luminance": 0.0316
}Semantic roles & 50–950 ramp
primary
#2B1F84
secondary
#AAB748
accent
#E543D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F