#2B1F83#2B1F83
#2B1F83 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.158 H 278.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F83 |
|---|---|
| RGB | rgb(43, 31, 131) |
| HSL | hsl(247, 62%, 32%) |
| HSV | hsv(247, 76%, 51%) |
| CMYK | cmyk(67.2%, 76.3%, 0%, 48.6%) |
| CIE-LAB | lab(20.56, 36.74, -53.92) |
| CIE-LCH | lch(20.56, 65.25, 304.27°) |
| OKLab | oklab(33.12% 0.0241 -0.1557) |
| OKLCH | oklch(33.12% 0.158 278.8) |
| XYZ | xyz(5.5817, 3.1318, 21.7787) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.64
Midnight Blue
#191970
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 5.20
Darkblue
#00008B
ΔE00 5.93
Navy
#000080
ΔE00 6.16
Cobalt Blue
#030AA7
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F83 #77831F
analogous
#1F4583 #2B1F83 #5D1F83
triadic
#2B1F83 #832B1F #1F832B
tetradic
#2B1F83 #831F45 #77831F #1F835D
square
#2B1F83 #831F45 #77831F #1F835D
split-complementary
#2B1F83 #835D1F #45831F
monochromatic
#0B0820 #1B1352 #2B1F83 #3B2BB4 #5949D4
Accessibility & contrast
On white
12.91
#2B1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2B1F83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F83
12.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F83 | 1.00 | 12.91 | 1.63 | 12.91 |
| #FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b1f83; /* rgb */ color: rgb(43, 31, 131); /* oklch */ color: oklch(33.1% 0.158 278.8);
Tailwind
colors: {
custom: {
50: '#715da8',
500: '#2b1f83',
950: '#000000',
},
}SCSS
$custom: #2b1f83; $custom-light: #715da8; $custom-dark: #000000;
JSON
{
"hex": "#2b1f83",
"rgb": {
"r": 43,
"g": 31,
"b": 131
},
"hsl": {
"h": 247.2,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.33121,
"c": 0.15755,
"h": 278.8
},
"luminance": 0.03132
}Semantic roles & 50–950 ramp
primary
#2B1F83
secondary
#A9B648
accent
#E543D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F