#2851B9#2851B9
#2851B9 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.171 H 264.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2851B9 |
|---|---|
| RGB | rgb(40, 81, 185) |
| HSL | hsl(223, 64%, 44%) |
| HSV | hsv(223, 78%, 73%) |
| CMYK | cmyk(78.4%, 56.2%, 0%, 27.5%) |
| CIE-LAB | lab(37.55, 23.94, -58.96) |
| CIE-LCH | lch(37.55, 63.63, 292.10°) |
| OKLab | oklab(47.03% -0.0166 -0.1702) |
| OKLCH | oklch(47.03% 0.171 264.4) |
| XYZ | xyz(12.5713, 9.8373, 47.1258) |
| Luminance | 0.0984 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.84
Cobalt
#0047AB
ΔE00 3.98
Blue Blue
#2242C7
ΔE00 5.33
Denim
#1560BD
ΔE00 6.05
Denim Blue
#3B5B92
ΔE00 6.13
Dusk Blue
#26538D
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2851B9 #B99028
analogous
#289AB9 #2851B9 #4728B9
triadic
#2851B9 #B92851 #51B928
tetradic
#2851B9 #B9289A #B99028 #28B947
square
#2851B9 #B9289A #B99028 #28B947
split-complementary
#2851B9 #B94728 #9AB928
monochromatic
#122554 #1D3B87 #2851B9 #4770D7 #7997E2
Accessibility & contrast
On white
7.08
#2851B9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#2851B9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2851B9
7.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2851B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2851B9 | 1.00 | 7.08 | 2.97 | 7.08 |
| #FFFFFF | 7.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2851b9; /* rgb */ color: rgb(40, 81, 185); /* oklch */ color: oklch(47.0% 0.171 264.4);
Tailwind
colors: {
custom: {
50: '#7981cf',
500: '#2851b9',
950: '#000000',
},
}SCSS
$custom: #2851b9; $custom-light: #7981cf; $custom-dark: #000000;
JSON
{
"hex": "#2851b9",
"rgb": {
"r": 40,
"g": 81,
"b": 185
},
"hsl": {
"h": 223.034,
"s": 64.444,
"l": 44.118
},
"oklch": {
"l": 0.47028,
"c": 0.17097,
"h": 264.4
},
"luminance": 0.09839
}Semantic roles & 50–950 ramp
primary
#2851B9
secondary
#CAB173
accent
#B840E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82