#2B40B4#2B40B4
#2B40B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.184 H 269.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40B4 |
|---|---|
| RGB | rgb(43, 64, 180) |
| HSL | hsl(231, 61%, 44%) |
| HSV | hsv(231, 76%, 71%) |
| CMYK | cmyk(76.1%, 64.4%, 0%, 29.4%) |
| CIE-LAB | lab(32.86, 33.52, -63.65) |
| CIE-LCH | lch(32.86, 71.94, 297.77°) |
| OKLab | oklab(43.45% -0.0031 -0.1841) |
| OKLCH | oklch(43.45% 0.184 269) |
| XYZ | xyz(11.0650, 7.4745, 44.0307) |
| Luminance | 0.0748 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.51
Sapphire (survey)
#2138AB
ΔE00 2.58
Ocean Blue
#4F42B5
ΔE00 4.71
Cobalt
#0047AB
ΔE00 4.83
Blue (survey)
#0343DF
ΔE00 5.36
Blueberry
#464196
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40B4 #B49F2B
analogous
#2B84B4 #2B40B4 #5A2BB4
triadic
#2B40B4 #B42B40 #40B42B
tetradic
#2B40B4 #B42B84 #B49F2B #2BB45A
square
#2B40B4 #B42B84 #B49F2B #2BB45A
split-complementary
#2B40B4 #B45A2B #84B42B
monochromatic
#131D51 #1F2E83 #2B40B4 #495ED3 #7A8ADF
Accessibility & contrast
On white
8.42
#2B40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2B40B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40B4
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40B4 | 1.00 | 8.42 | 2.50 | 8.42 |
| #FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2b40b4; /* rgb */ color: rgb(43, 64, 180); /* oklch */ color: oklch(43.4% 0.184 269.0);
Tailwind
colors: {
custom: {
50: '#7a74cb',
500: '#2b40b4',
950: '#000000',
},
}SCSS
$custom: #2b40b4; $custom-light: #7a74cb; $custom-dark: #000000;
JSON
{
"hex": "#2b40b4",
"rgb": {
"r": 43,
"g": 64,
"b": 180
},
"hsl": {
"h": 230.803,
"s": 61.435,
"l": 43.725
},
"oklch": {
"l": 0.43446,
"c": 0.18412,
"h": 269
},
"luminance": 0.07476
}Semantic roles & 50–950 ramp
primary
#2B40B4
secondary
#C7BB73
accent
#CC43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82