#2871B1#2871B1
#2871B1 is a mid, vivid cyan. Relative luminance 0.154; OKLCH L 53.5% C 0.123 H 248.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2871B1 |
|---|---|
| RGB | rgb(40, 113, 177) |
| HSL | hsl(208, 63%, 43%) |
| HSV | hsv(208, 77%, 69%) |
| CMYK | cmyk(77.4%, 36.2%, 0%, 30.6%) |
| CIE-LAB | lab(46.22, 0.26, -40.35) |
| CIE-LCH | lch(46.22, 40.35, 270.38°) |
| OKLab | oklab(53.55% -0.0443 -0.1149) |
| OKLCH | oklch(53.55% 0.123 248.9) |
| XYZ | xyz(14.7130, 15.4340, 43.7901) |
| Luminance | 0.1544 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Flat Blue
#3C73A8
ΔE00 1.88
Bluish
#2976BB
ΔE00 2.08
Medium Blue
#2C6FBB
ΔE00 2.19
Muted Blue
#3B719F
ΔE00 2.44
Mid Blue
#276AB3
ΔE00 2.91
Windows Blue
#3778BF
ΔE00 3.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2871B1 #B16828
analogous
#28B1AC #2871B1 #282DB1
triadic
#2871B1 #B12871 #71B128
tetradic
#2871B1 #AC28B1 #B16828 #2DB128
square
#2871B1 #AC28B1 #B16828 #2DB128
split-complementary
#2871B1 #B1282D #B1AC28
monochromatic
#11314D #1D517F #2871B1 #4290D4 #74ADE0
Accessibility & contrast
On white
5.14
#2871B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#2871B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2871B1
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2871B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2871B1 | 1.00 | 5.14 | 4.09 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5374B4
Deuteranopia (green-blind)
#3F68B0
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2871b1; /* rgb */ color: rgb(40, 113, 177); /* oklch */ color: oklch(53.5% 0.123 248.9);
Tailwind
colors: {
custom: {
50: '#7699c8',
500: '#2871b1',
950: '#000000',
},
}SCSS
$custom: #2871b1; $custom-light: #7699c8; $custom-dark: #000000;
JSON
{
"hex": "#2871b1",
"rgb": {
"r": 40,
"g": 113,
"b": 177
},
"hsl": {
"h": 208.029,
"s": 63.134,
"l": 42.549
},
"oklch": {
"l": 0.53549,
"c": 0.12311,
"h": 248.9
},
"luminance": 0.15436
}Semantic roles & 50–950 ramp
primary
#2871B1
secondary
#C7976E
accent
#8E42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82