#2851B7#2851B7
#2851B7 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.168 H 264.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2851B7 |
|---|---|
| RGB | rgb(40, 81, 183) |
| HSL | hsl(223, 64%, 44%) |
| HSV | hsv(223, 78%, 72%) |
| CMYK | cmyk(78.1%, 55.7%, 0%, 28.2%) |
| CIE-LAB | lab(37.40, 23.17, -58.03) |
| CIE-LCH | lch(37.40, 62.49, 291.77°) |
| OKLab | oklab(46.87% -0.0168 -0.1674) |
| OKLCH | oklch(46.87% 0.168 264.3) |
| XYZ | xyz(12.3617, 9.7535, 46.0217) |
| Luminance | 0.0975 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.76
Cobalt
#0047AB
ΔE00 3.83
Blue Blue
#2242C7
ΔE00 5.49
Denim Blue
#3B5B92
ΔE00 5.93
Dusk Blue
#26538D
ΔE00 5.99
Denim
#1560BD
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2851B7 #B78E28
analogous
#2898B7 #2851B7 #4628B7
triadic
#2851B7 #B72851 #51B728
tetradic
#2851B7 #B72898 #B78E28 #28B746
square
#2851B7 #B72898 #B78E28 #28B746
split-complementary
#2851B7 #B74628 #98B728
monochromatic
#122553 #1D3B85 #2851B7 #466FD6 #7896E1
Accessibility & contrast
On white
7.12
#2851B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#2851B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2851B7
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2851B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2851B7 | 1.00 | 7.12 | 2.95 | 7.12 |
| #FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2851b7; /* rgb */ color: rgb(40, 81, 183); /* oklch */ color: oklch(46.9% 0.168 264.3);
Tailwind
colors: {
custom: {
50: '#7881cd',
500: '#2851b7',
950: '#000000',
},
}SCSS
$custom: #2851b7; $custom-light: #7881cd; $custom-dark: #000000;
JSON
{
"hex": "#2851b7",
"rgb": {
"r": 40,
"g": 81,
"b": 183
},
"hsl": {
"h": 222.797,
"s": 64.126,
"l": 43.725
},
"oklch": {
"l": 0.46865,
"c": 0.16827,
"h": 264.3
},
"luminance": 0.09755
}Semantic roles & 50–950 ramp
primary
#2851B7
secondary
#C9B072
accent
#B741E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82