#2871AF#2871AF
#2871AF is a mid, vivid cyan. Relative luminance 0.154; OKLCH L 53.4% C 0.121 H 248.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2871AF |
|---|---|
| RGB | rgb(40, 113, 175) |
| HSL | hsl(208, 63%, 42%) |
| HSV | hsv(208, 77%, 69%) |
| CMYK | cmyk(77.1%, 35.4%, 0%, 31.4%) |
| CIE-LAB | lab(46.12, -0.49, -39.35) |
| CIE-LCH | lch(46.12, 39.35, 269.29°) |
| OKLab | oklab(53.43% -0.0448 -0.1119) |
| OKLCH | oklch(53.43% 0.121 248.2) |
| XYZ | xyz(14.5151, 15.3548, 42.7479) |
| Luminance | 0.1536 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Flat Blue
#3C73A8
ΔE00 1.90
Bluish
#2976BB
ΔE00 2.22
Muted Blue
#3B719F
ΔE00 2.28
Medium Blue
#2C6FBB
ΔE00 2.48
Mid Blue
#276AB3
ΔE00 3.06
Windows Blue
#3778BF
ΔE00 3.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2871AF #AF6628
analogous
#28AFAA #2871AF #282DAF
triadic
#2871AF #AF2871 #71AF28
tetradic
#2871AF #AA28AF #AF6628 #2DAF28
square
#2871AF #AA28AF #AF6628 #2DAF28
split-complementary
#2871AF #AF282D #AFAA28
monochromatic
#11314B #1D517D #2871AF #4190D4 #73ADDF
Accessibility & contrast
On white
5.16
#2871AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#2871AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2871AF
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2871AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2871AF | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5474B2
Deuteranopia (green-blind)
#4168AE
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2871af; /* rgb */ color: rgb(40, 113, 175); /* oklch */ color: oklch(53.4% 0.121 248.2);
Tailwind
colors: {
custom: {
50: '#7699c7',
500: '#2871af',
950: '#000000',
},
}SCSS
$custom: #2871af; $custom-light: #7699c7; $custom-dark: #000000;
JSON
{
"hex": "#2871af",
"rgb": {
"r": 40,
"g": 113,
"b": 175
},
"hsl": {
"h": 207.556,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.53431,
"c": 0.12059,
"h": 248.2
},
"luminance": 0.15357
}Semantic roles & 50–950 ramp
primary
#2871AF
secondary
#C6966D
accent
#8D42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82