#2851BD#2851BD
#2851BD is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.176 H 264.7°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2851BD |
|---|---|
| RGB | rgb(40, 81, 189) |
| HSL | hsl(223, 65%, 45%) |
| HSV | hsv(223, 79%, 74%) |
| CMYK | cmyk(78.8%, 57.1%, 0%, 25.9%) |
| CIE-LAB | lab(37.86, 25.47, -60.80) |
| CIE-LCH | lch(37.86, 65.92, 292.73°) |
| OKLab | oklab(47.36% -0.0164 -0.1756) |
| OKLCH | oklch(47.36% 0.176 264.7) |
| XYZ | xyz(12.9996, 10.0086, 49.3810) |
| Luminance | 0.1001 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.11
Cobalt
#0047AB
ΔE00 4.32
Blue Blue
#2242C7
ΔE00 5.05
Blue (survey)
#0343DF
ΔE00 5.99
Denim
#1560BD
ΔE00 6.17
Warm Blue
#4B57DB
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2851BD #BD9428
analogous
#289CBD #2851BD #4928BD
triadic
#2851BD #BD2851 #51BD28
tetradic
#2851BD #BD289C #BD9428 #28BD49
square
#2851BD #BD289C #BD9428 #28BD49
split-complementary
#2851BD #BD4928 #9CBD28
monochromatic
#132658 #1D3B8A #2851BD #4A71D9 #7C98E3
Accessibility & contrast
On white
7.00
#2851BD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
3.00
#2851BD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2851BD
7.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2851BD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2851BD | 1.00 | 7.00 | 3.00 | 7.00 |
| #FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2851bd; /* rgb */ color: rgb(40, 81, 189); /* oklch */ color: oklch(47.4% 0.176 264.7);
Tailwind
colors: {
custom: {
50: '#7a81d2',
500: '#2851bd',
950: '#000000',
},
}SCSS
$custom: #2851bd; $custom-light: #7a81d2; $custom-dark: #000000;
JSON
{
"hex": "#2851bd",
"rgb": {
"r": 40,
"g": 81,
"b": 189
},
"hsl": {
"h": 223.49,
"s": 65.066,
"l": 44.902
},
"oklch": {
"l": 0.47358,
"c": 0.17633,
"h": 264.7
},
"luminance": 0.1001
}Semantic roles & 50–950 ramp
primary
#2851BD
secondary
#CBB475
accent
#BA40E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83