#2871A8#2871A8

#2871A8 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.0% C 0.112 H 245.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2871A8
RGBrgb(40, 113, 168)
HSLhsl(206, 62%, 41%)
HSVhsv(206, 76%, 66%)
CMYKcmyk(76.2%, 32.7%, 0%, 34.1%)
CIE-LABlab(45.75, -3.09, -35.83)
CIE-LCHlch(45.75, 35.97, 265.07°)
OKLaboklab(53.03% -0.0469 -0.1017)
OKLCHoklch(53.03% 0.112 245.2)
XYZxyz(13.8454, 15.0869, 39.2206)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871A8 #A85F28
analogous
#28A89F #2871A8 #2831A8
triadic
#2871A8 #A82871 #71A828
tetradic
#2871A8 #9F28A8 #A85F28 #31A828
square
#2871A8 #9F28A8 #A85F28 #31A828
split-complementary
#2871A8 #A82831 #A89F28
monochromatic
#102F45 #1C5077 #2871A8 #3D91D1 #6EADDC

Accessibility & contrast

On white

5.23
#2871A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2871A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871A8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871A8#FFFFFF#000000##FFFFFF
##2871A81.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5873AA
Deuteranopia (green-blind)
#4667A7
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2871a8;
/* rgb */ color: rgb(40, 113, 168);
/* oklch */ color: oklch(53.0% 0.112 245.2);
Tailwind
colors: {
  custom: {
    50: '#7499c2',
    500: '#2871a8',
    950: '#000000',
  },
}
SCSS
$custom: #2871a8;
$custom-light: #7499c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2871a8",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 168
  },
  "hsl": {
    "h": 205.781,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53026,
    "c": 0.11195,
    "h": 245.2
  },
  "luminance": 0.15089
}

Semantic roles & 50–950 ramp

primary
#2871A8
secondary
#C39069
accent
#8943E5
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2871A8

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

Preview Lab → · Contrast checker → · Palette generator →

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