#2870C5#2870C5
#2870C5 is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.6% C 0.150 H 255.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2870C5 |
|---|---|
| RGB | rgb(40, 112, 197) |
| HSL | hsl(212, 66%, 46%) |
| HSV | hsv(212, 80%, 77%) |
| CMYK | cmyk(79.7%, 43.1%, 0%, 22.7%) |
| CIE-LAB | lab(47.06, 8.46, -50.58) |
| CIE-LCH | lch(47.06, 51.28, 279.49°) |
| OKLab | oklab(54.58% -0.0386 -0.1449) |
| OKLCH | oklch(54.58% 0.15 255.1) |
| XYZ | xyz(16.7435, 16.0687, 55.0316) |
| Luminance | 0.1607 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Medium Blue
#2C6FBB
ΔE00 1.11
Mid Blue
#276AB3
ΔE00 2.91
Windows Blue
#3778BF
ΔE00 2.93
Bluish
#2976BB
ΔE00 3.03
Flat Blue
#3C73A8
ΔE00 3.24
French Blue
#436BAD
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2870C5 #C57D28
analogous
#28BFC5 #2870C5 #2E28C5
triadic
#2870C5 #C52870 #70C528
tetradic
#2870C5 #C528BF #C57D28 #28C52E
square
#2870C5 #C528BF #C57D28 #28C52E
split-complementary
#2870C5 #C52E28 #BFC528
monochromatic
#13365F #1E5392 #2870C5 #4F8FDB #82B0E6
Accessibility & contrast
On white
4.98
#2870C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#2870C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2870C5
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2870C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2870C5 | 1.00 | 4.98 | 4.21 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4577C8
Deuteranopia (green-blind)
#2769C3
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #2870c5; /* rgb */ color: rgb(40, 112, 197); /* oklch */ color: oklch(54.6% 0.150 255.1);
Tailwind
colors: {
custom: {
50: '#7a98d7',
500: '#2870c5',
950: '#000000',
},
}SCSS
$custom: #2870c5; $custom-light: #7a98d7; $custom-dark: #000000;
JSON
{
"hex": "#2870c5",
"rgb": {
"r": 40,
"g": 112,
"b": 197
},
"hsl": {
"h": 212.484,
"s": 66.245,
"l": 46.471
},
"oklch": {
"l": 0.54575,
"c": 0.14997,
"h": 255.1
},
"luminance": 0.16071
}Semantic roles & 50–950 ramp
primary
#2870C5
secondary
#CEA87A
accent
#9B3FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83