#2B1F85#2B1F85
#2B1F85 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.160 H 278.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F85 |
|---|---|
| RGB | rgb(43, 31, 133) |
| HSL | hsl(247, 62%, 32%) |
| HSV | hsv(247, 77%, 52%) |
| CMYK | cmyk(67.7%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.78, 37.41, -54.83) |
| CIE-LCH | lch(20.78, 66.38, 304.30°) |
| OKLab | oklab(33.33% 0.0237 -0.1583) |
| OKLCH | oklch(33.33% 0.16 278.5) |
| XYZ | xyz(5.7185, 3.1865, 22.4995) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.42
Midnight Blue
#191970
ΔE00 3.90
Indigo (survey)
#380282
ΔE00 5.18
Darkblue
#00008B
ΔE00 5.84
Cobalt Blue
#030AA7
ΔE00 5.94
Navy
#000080
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F85 #79851F
analogous
#1F4685 #2B1F85 #5E1F85
triadic
#2B1F85 #852B1F #1F852B
tetradic
#2B1F85 #851F46 #79851F #1F855E
square
#2B1F85 #851F46 #79851F #1F855E
split-complementary
#2B1F85 #855E1F #46851F
monochromatic
#0B0822 #1B1353 #2B1F85 #3B2BB7 #5A4AD5
Accessibility & contrast
On white
12.83
#2B1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2B1F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F85
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F85 | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b1f85; /* rgb */ color: rgb(43, 31, 133); /* oklch */ color: oklch(33.3% 0.160 278.5);
Tailwind
colors: {
custom: {
50: '#725daa',
500: '#2b1f85',
950: '#000000',
},
}SCSS
$custom: #2b1f85; $custom-light: #725daa; $custom-dark: #000000;
JSON
{
"hex": "#2b1f85",
"rgb": {
"r": 43,
"g": 31,
"b": 133
},
"hsl": {
"h": 247.059,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.33334,
"c": 0.16011,
"h": 278.5
},
"luminance": 0.03187
}Semantic roles & 50–950 ramp
primary
#2B1F85
secondary
#AAB749
accent
#E543D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F