#2871AD#2871AD

#2871AD is a mid, moderate cyan. Relative luminance 0.153; OKLCH L 53.3% C 0.118 H 247.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2871AD
RGBrgb(40, 113, 173)
HSLhsl(207, 62%, 42%)
HSVhsv(207, 77%, 68%)
CMYKcmyk(76.9%, 34.7%, 0%, 32.2%)
CIE-LABlab(46.01, -1.23, -38.35)
CIE-LCHlch(46.01, 38.37, 268.16°)
OKLaboklab(53.31% -0.0454 -0.109)
OKLCHoklch(53.31% 0.118 247.4)
XYZxyz(14.3201, 15.2768, 41.7211)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871AD #AD6428
analogous
#28ADA7 #2871AD #282EAD
triadic
#2871AD #AD2871 #71AD28
tetradic
#2871AD #A728AD #AD6428 #2EAD28
square
#2871AD #A728AD #AD6428 #2EAD28
split-complementary
#2871AD #AD282E #ADA728
monochromatic
#11304A #1D517B #2871AD #3F90D3 #71ADDE

Accessibility & contrast

On white

5.18
#2871AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2871AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871AD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871AD#FFFFFF#000000##FFFFFF
##2871AD1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5574B0
Deuteranopia (green-blind)
#4267AC
Tritanopia (blue-blind)
#007F87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2871ad;
/* rgb */ color: rgb(40, 113, 173);
/* oklch */ color: oklch(53.3% 0.118 247.4);
Tailwind
colors: {
  custom: {
    50: '#7599c6',
    500: '#2871ad',
    950: '#000000',
  },
}
SCSS
$custom: #2871ad;
$custom-light: #7599c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2871ad",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 173
  },
  "hsl": {
    "h": 207.068,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53314,
    "c": 0.1181,
    "h": 247.4
  },
  "luminance": 0.15279
}

Semantic roles & 50–950 ramp

primary
#2871AD
secondary
#C5946C
accent
#8C42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2871AD

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

Preview Lab → · Contrast checker → · Palette generator →

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