#2B51BD#2B51BD
#2B51BD is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.176 H 265.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2B51BD |
|---|---|
| RGB | rgb(43, 81, 189) |
| HSL | hsl(224, 63%, 45%) |
| HSV | hsv(224, 77%, 74%) |
| CMYK | cmyk(77.2%, 57.1%, 0%, 25.9%) |
| CIE-LAB | lab(37.97, 25.78, -60.62) |
| CIE-LCH | lch(37.97, 65.87, 293.04°) |
| OKLab | oklab(47.47% -0.0141 -0.175) |
| OKLCH | oklch(47.47% 0.176 265.4) |
| XYZ | xyz(13.1208, 10.0711, 49.3867) |
| Luminance | 0.1007 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.39
Cobalt
#0047AB
ΔE00 4.47
Blue Blue
#2242C7
ΔE00 4.96
Blue (survey)
#0343DF
ΔE00 5.91
Warm Blue
#4B57DB
ΔE00 6.18
Denim
#1560BD
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B51BD #BD972B
analogous
#2B9ABD #2B51BD #4E2BBD
triadic
#2B51BD #BD2B51 #51BD2B
tetradic
#2B51BD #BD2B9A #BD972B #2BBD4E
square
#2B51BD #BD2B9A #BD972B #2BBD4E
split-complementary
#2B51BD #BD4E2B #9ABD2B
monochromatic
#142659 #203C8B #2B51BD #4E72D7 #809AE2
Accessibility & contrast
On white
6.97
#2B51BD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#2B51BD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2B51BD
6.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B51BD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B51BD | 1.00 | 6.97 | 3.01 | 6.97 |
| #FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2b51bd; /* rgb */ color: rgb(43, 81, 189); /* oklch */ color: oklch(47.5% 0.176 265.4);
Tailwind
colors: {
custom: {
50: '#7b81d2',
500: '#2b51bd',
950: '#000000',
},
}SCSS
$custom: #2b51bd; $custom-light: #7b81d2; $custom-dark: #000000;
JSON
{
"hex": "#2b51bd",
"rgb": {
"r": 43,
"g": 81,
"b": 189
},
"hsl": {
"h": 224.384,
"s": 62.931,
"l": 45.49
},
"oklch": {
"l": 0.47473,
"c": 0.17554,
"h": 265.4
},
"luminance": 0.10073
}Semantic roles & 50–950 ramp
primary
#2B51BD
secondary
#CBB679
accent
#BB42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83