#2B51B8#2B51B8
#2B51B8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.169 H 265.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2B51B8 |
|---|---|
| RGB | rgb(43, 81, 184) |
| HSL | hsl(224, 62%, 45%) |
| HSV | hsv(224, 77%, 72%) |
| CMYK | cmyk(76.6%, 56%, 0%, 27.8%) |
| CIE-LAB | lab(37.59, 23.89, -58.31) |
| CIE-LCH | lch(37.59, 63.01, 292.28°) |
| OKLab | oklab(47.06% -0.0144 -0.1682) |
| OKLCH | oklch(47.06% 0.169 265.1) |
| XYZ | xyz(12.5874, 9.8577, 46.5774) |
| Luminance | 0.0986 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.10
Cobalt
#0047AB
ΔE00 4.05
Blue Blue
#2242C7
ΔE00 5.30
Denim Blue
#3B5B92
ΔE00 6.08
Denim
#1560BD
ΔE00 6.20
Cobalt (survey)
#1E488F
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B51B8 #B8922B
analogous
#2B98B8 #2B51B8 #4C2BB8
triadic
#2B51B8 #B82B51 #51B82B
tetradic
#2B51B8 #B82B98 #B8922B #2BB84C
square
#2B51B8 #B82B98 #B8922B #2BB84C
split-complementary
#2B51B8 #B84C2B #98B82B
monochromatic
#142555 #1F3B86 #2B51B8 #4B70D5 #7D98E1
Accessibility & contrast
On white
7.07
#2B51B8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#2B51B8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B51B8
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B51B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B51B8 | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2b51b8; /* rgb */ color: rgb(43, 81, 184); /* oklch */ color: oklch(47.1% 0.169 265.1);
Tailwind
colors: {
custom: {
50: '#7981ce',
500: '#2b51b8',
950: '#000000',
},
}SCSS
$custom: #2b51b8; $custom-light: #7981ce; $custom-dark: #000000;
JSON
{
"hex": "#2b51b8",
"rgb": {
"r": 43,
"g": 81,
"b": 184
},
"hsl": {
"h": 223.83,
"s": 62.115,
"l": 44.51
},
"oklch": {
"l": 0.47064,
"c": 0.16881,
"h": 265.1
},
"luminance": 0.09859
}Semantic roles & 50–950 ramp
primary
#2B51B8
secondary
#C9B376
accent
#B943E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82