#2871C5#2871C5
#2871C5 is a mid, vivid cyan. Relative luminance 0.163; OKLCH L 54.8% C 0.149 H 254.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2871C5 |
|---|---|
| RGB | rgb(40, 113, 197) |
| HSL | hsl(212, 66%, 46%) |
| HSV | hsv(212, 80%, 77%) |
| CMYK | cmyk(79.7%, 42.6%, 0%, 22.7%) |
| CIE-LAB | lab(47.35, 7.83, -50.12) |
| CIE-LCH | lch(47.35, 50.73, 278.88°) |
| OKLab | oklab(54.8% -0.0395 -0.1435) |
| OKLCH | oklch(54.8% 0.149 254.6) |
| XYZ | xyz(16.8545, 16.2906, 55.0686) |
| Luminance | 0.1629 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Medium Blue
#2C6FBB
ΔE00 1.25
Windows Blue
#3778BF
ΔE00 2.57
Bluish
#2976BB
ΔE00 2.69
Flat Blue
#3C73A8
ΔE00 3.13
Mid Blue
#276AB3
ΔE00 3.15
Muted Blue
#3B719F
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2871C5 #C57C28
analogous
#28C0C5 #2871C5 #2E28C5
triadic
#2871C5 #C52871 #71C528
tetradic
#2871C5 #C528C0 #C57C28 #28C52E
square
#2871C5 #C528C0 #C57C28 #28C52E
split-complementary
#2871C5 #C52E28 #C0C528
monochromatic
#13375F #1E5492 #2871C5 #4F90DB #82B0E6
Accessibility & contrast
On white
4.93
#2871C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.26
#2871C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2871C5
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2871C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2871C5 | 1.00 | 4.93 | 4.26 | 4.93 |
| #FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4778C8
Deuteranopia (green-blind)
#296AC3
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #2871c5; /* rgb */ color: rgb(40, 113, 197); /* oklch */ color: oklch(54.8% 0.149 254.6);
Tailwind
colors: {
custom: {
50: '#7a99d7',
500: '#2871c5',
950: '#000000',
},
}SCSS
$custom: #2871c5; $custom-light: #7a99d7; $custom-dark: #000000;
JSON
{
"hex": "#2871c5",
"rgb": {
"r": 40,
"g": 113,
"b": 197
},
"hsl": {
"h": 212.102,
"s": 66.245,
"l": 46.471
},
"oklch": {
"l": 0.54799,
"c": 0.14886,
"h": 254.6
},
"luminance": 0.16293
}Semantic roles & 50–950 ramp
primary
#2871C5
secondary
#CEA77A
accent
#9A3FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83