#2871B0#2871B0

#2871B0 is a mid, vivid cyan. Relative luminance 0.154; OKLCH L 53.5% C 0.122 H 248.5°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2871B0
RGBrgb(40, 113, 176)
HSLhsl(208, 63%, 42%)
HSVhsv(208, 77%, 69%)
CMYKcmyk(77.3%, 35.8%, 0%, 31%)
CIE-LABlab(46.17, -0.11, -39.85)
CIE-LCHlch(46.17, 39.85, 269.84°)
OKLaboklab(53.49% -0.0446 -0.1134)
OKLCHoklch(53.49% 0.122 248.5)
XYZxyz(14.6137, 15.3942, 43.2671)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871B0 #B06728
analogous
#28B0AB #2871B0 #282DB0
triadic
#2871B0 #B02871 #71B028
tetradic
#2871B0 #AB28B0 #B06728 #2DB028
square
#2871B0 #AB28B0 #B06728 #2DB028
split-complementary
#2871B0 #B0282D #B0AB28
monochromatic
#11314C #1D517E #2871B0 #4190D4 #73ADDF

Accessibility & contrast

On white

5.15
#2871B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2871B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871B0
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871B0#FFFFFF#000000##FFFFFF
##2871B01.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5474B3
Deuteranopia (green-blind)
#4068AF
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2871b0;
/* rgb */ color: rgb(40, 113, 176);
/* oklch */ color: oklch(53.5% 0.122 248.5);
Tailwind
colors: {
  custom: {
    50: '#7699c8',
    500: '#2871b0',
    950: '#000000',
  },
}
SCSS
$custom: #2871b0;
$custom-light: #7699c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2871b0",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 176
  },
  "hsl": {
    "h": 207.794,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5349,
    "c": 0.12184,
    "h": 248.5
  },
  "luminance": 0.15396
}

Semantic roles & 50–950 ramp

primary
#2871B0
secondary
#C6976D
accent
#8E42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2871B0

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

Preview Lab → · Contrast checker → · Palette generator →

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