#2851BF#2851BF
#2851BF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.179 H 264.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2851BF |
|---|---|
| RGB | rgb(40, 81, 191) |
| HSL | hsl(224, 65%, 45%) |
| HSV | hsv(224, 79%, 75%) |
| CMYK | cmyk(79.1%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(38.01, 26.23, -61.72) |
| CIE-LCH | lch(38.01, 67.06, 293.02°) |
| OKLab | oklab(47.52% -0.0163 -0.1783) |
| OKLCH | oklch(47.52% 0.179 264.8) |
| XYZ | xyz(13.2181, 10.0960, 50.5322) |
| Luminance | 0.1010 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.28
Cobalt
#0047AB
ΔE00 4.50
Blue Blue
#2242C7
ΔE00 4.94
Blue (survey)
#0343DF
ΔE00 5.78
Warm Blue
#4B57DB
ΔE00 6.15
Denim
#1560BD
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2851BF #BF9628
analogous
#289CBF #2851BF #4B28BF
triadic
#2851BF #BF2851 #51BF28
tetradic
#2851BF #BF289C #BF9628 #28BF4B
square
#2851BF #BF289C #BF9628 #28BF4B
split-complementary
#2851BF #BF4B28 #9CBF28
monochromatic
#13265A #1D3C8C #2851BF #4B72D9 #7E99E4
Accessibility & contrast
On white
6.95
#2851BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#2851BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2851BF
6.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2851BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2851BF | 1.00 | 6.95 | 3.02 | 6.95 |
| #FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2851bf; /* rgb */ color: rgb(40, 81, 191); /* oklch */ color: oklch(47.5% 0.179 264.8);
Tailwind
colors: {
custom: {
50: '#7a81d3',
500: '#2851bf',
950: '#000000',
},
}SCSS
$custom: #2851bf; $custom-light: #7a81d3; $custom-dark: #000000;
JSON
{
"hex": "#2851bf",
"rgb": {
"r": 40,
"g": 81,
"b": 191
},
"hsl": {
"h": 223.709,
"s": 65.368,
"l": 45.294
},
"oklch": {
"l": 0.47524,
"c": 0.179,
"h": 264.8
},
"luminance": 0.10098
}Semantic roles & 50–950 ramp
primary
#2851BF
secondary
#CCB577
accent
#BA3FE8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83