#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
RGBrgb(40, 113, 197)
HSLhsl(212, 66%, 46%)
HSVhsv(212, 80%, 77%)
CMYKcmyk(79.7%, 42.6%, 0%, 22.7%)
CIE-LABlab(47.35, 7.83, -50.12)
CIE-LCHlch(47.35, 50.73, 278.88°)
OKLaboklab(54.8% -0.0395 -0.1435)
OKLCHoklch(54.8% 0.149 254.6)
XYZxyz(16.8545, 16.2906, 55.0686)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

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
##2871C51.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.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

Preview Lab

Preview with #2871C5

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2871C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva