#2871B4#2871B4
#2871B4 is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 53.7% C 0.127 H 250.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2871B4 |
|---|---|
| RGB | rgb(40, 113, 180) |
| HSL | hsl(209, 64%, 43%) |
| HSV | hsv(209, 78%, 71%) |
| CMYK | cmyk(77.8%, 37.2%, 0%, 29.4%) |
| CIE-LAB | lab(46.38, 1.39, -41.84) |
| CIE-LCH | lch(46.38, 41.86, 271.91°) |
| OKLab | oklab(53.73% -0.0435 -0.1192) |
| OKLCH | oklch(53.73% 0.127 250) |
| XYZ | xyz(15.0153, 15.5549, 45.3822) |
| Luminance | 0.1556 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Medium Blue
#2C6FBB
ΔE00 1.78
Flat Blue
#3C73A8
ΔE00 1.92
Bluish
#2976BB
ΔE00 1.94
Muted Blue
#3B719F
ΔE00 2.71
Mid Blue
#276AB3
ΔE00 2.74
Windows Blue
#3778BF
ΔE00 3.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2871B4 #B46B28
analogous
#28B4B1 #2871B4 #282BB4
triadic
#2871B4 #B42871 #71B428
tetradic
#2871B4 #B128B4 #B46B28 #2BB428
square
#2871B4 #B128B4 #B46B28 #2BB428
split-complementary
#2871B4 #B4282B #B4B128
monochromatic
#123250 #1D5282 #2871B4 #4490D5 #76ADE1
Accessibility & contrast
On white
5.11
#2871B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#2871B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2871B4
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2871B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2871B4 | 1.00 | 5.11 | 4.11 | 5.11 |
| #FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5275B7
Deuteranopia (green-blind)
#3C68B3
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #2871b4; /* rgb */ color: rgb(40, 113, 180); /* oklch */ color: oklch(53.7% 0.127 250.0);
Tailwind
colors: {
custom: {
50: '#7799cb',
500: '#2871b4',
950: '#000000',
},
}SCSS
$custom: #2871b4; $custom-light: #7799cb; $custom-dark: #000000;
JSON
{
"hex": "#2871b4",
"rgb": {
"r": 40,
"g": 113,
"b": 180
},
"hsl": {
"h": 208.714,
"s": 63.636,
"l": 43.137
},
"oklch": {
"l": 0.53729,
"c": 0.1269,
"h": 250
},
"luminance": 0.15557
}Semantic roles & 50–950 ramp
primary
#2871B4
secondary
#C89A70
accent
#9041E7
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82