#2B40B1#2B40B1
#2B40B1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.180 H 269.1°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40B1 |
|---|---|
| RGB | rgb(43, 64, 177) |
| HSL | hsl(231, 61%, 43%) |
| HSV | hsv(231, 76%, 69%) |
| CMYK | cmyk(75.7%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(32.60, 32.42, -62.30) |
| CIE-LCH | lch(32.60, 70.23, 297.49°) |
| OKLab | oklab(43.17% -0.0029 -0.1801) |
| OKLCH | oklch(43.17% 0.18 269.1) |
| XYZ | xyz(10.7627, 7.3535, 42.4386) |
| Luminance | 0.0736 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.43
Blue Blue
#2242C7
ΔE00 2.90
Cobalt
#0047AB
ΔE00 4.64
Ocean Blue
#4F42B5
ΔE00 4.85
Blueberry
#464196
ΔE00 5.50
Blue (survey)
#0343DF
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40B1 #B19C2B
analogous
#2B83B1 #2B40B1 #592BB1
triadic
#2B40B1 #B12B40 #40B12B
tetradic
#2B40B1 #B12B83 #B19C2B #2BB159
square
#2B40B1 #B12B83 #B19C2B #2BB159
split-complementary
#2B40B1 #B1592B #83B12B
monochromatic
#131C4F #1F2E80 #2B40B1 #475DD2 #7888DE
Accessibility & contrast
On white
8.50
#2B40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2B40B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40B1
8.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40B1 | 1.00 | 8.50 | 2.47 | 8.50 |
| #FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2b40b1; /* rgb */ color: rgb(43, 64, 177); /* oklch */ color: oklch(43.2% 0.180 269.1);
Tailwind
colors: {
custom: {
50: '#7974c9',
500: '#2b40b1',
950: '#000000',
},
}SCSS
$custom: #2b40b1; $custom-light: #7974c9; $custom-dark: #000000;
JSON
{
"hex": "#2b40b1",
"rgb": {
"r": 43,
"g": 64,
"b": 177
},
"hsl": {
"h": 230.597,
"s": 60.909,
"l": 43.137
},
"oklch": {
"l": 0.43169,
"c": 0.18016,
"h": 269.1
},
"luminance": 0.07355
}Semantic roles & 50–950 ramp
primary
#2B40B1
secondary
#C6B972
accent
#CB44E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82