#2851B5#2851B5
#2851B5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.166 H 264.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2851B5 |
|---|---|
| RGB | rgb(40, 81, 181) |
| HSL | hsl(223, 64%, 43%) |
| HSV | hsv(223, 78%, 71%) |
| CMYK | cmyk(77.9%, 55.2%, 0%, 29%) |
| CIE-LAB | lab(37.24, 22.40, -57.10) |
| CIE-LCH | lch(37.24, 61.34, 291.42°) |
| OKLab | oklab(46.7% -0.0169 -0.1647) |
| OKLCH | oklch(46.7% 0.166 264.1) |
| XYZ | xyz(12.1550, 9.6708, 44.9331) |
| Luminance | 0.0967 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.72
Cobalt
#0047AB
ΔE00 3.70
Blue Blue
#2242C7
ΔE00 5.66
Denim Blue
#3B5B92
ΔE00 5.73
Dusk Blue
#26538D
ΔE00 5.74
Cobalt (survey)
#1E488F
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2851B5 #B58C28
analogous
#2897B5 #2851B5 #4528B5
triadic
#2851B5 #B52851 #51B528
tetradic
#2851B5 #B52897 #B58C28 #28B545
square
#2851B5 #B52897 #B58C28 #28B545
split-complementary
#2851B5 #B54528 #97B528
monochromatic
#122451 #1D3B83 #2851B5 #446FD6 #7795E1
Accessibility & contrast
On white
7.16
#2851B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#2851B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2851B5
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2851B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2851B5 | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2851b5; /* rgb */ color: rgb(40, 81, 181); /* oklch */ color: oklch(46.7% 0.166 264.1);
Tailwind
colors: {
custom: {
50: '#7881cc',
500: '#2851b5',
950: '#000000',
},
}SCSS
$custom: #2851b5; $custom-light: #7881cc; $custom-dark: #000000;
JSON
{
"hex": "#2851b5",
"rgb": {
"r": 40,
"g": 81,
"b": 181
},
"hsl": {
"h": 222.553,
"s": 63.801,
"l": 43.333
},
"oklch": {
"l": 0.46703,
"c": 0.16556,
"h": 264.1
},
"luminance": 0.09672
}Semantic roles & 50–950 ramp
primary
#2851B5
secondary
#C8AF70
accent
#B741E7
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82