#2871AC#2871AC

#2871AC is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.3% C 0.117 H 247.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2871AC
RGBrgb(40, 113, 172)
HSLhsl(207, 62%, 42%)
HSVhsv(207, 77%, 67%)
CMYKcmyk(76.7%, 34.3%, 0%, 32.5%)
CIE-LABlab(45.96, -1.61, -37.85)
CIE-LCHlch(45.96, 37.88, 267.57°)
OKLaboklab(53.26% -0.0457 -0.1075)
OKLCHoklch(53.26% 0.117 247)
XYZxyz(14.2237, 15.2383, 41.2134)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871AC #AC6328
analogous
#28ACA5 #2871AC #282FAC
triadic
#2871AC #AC2871 #71AC28
tetradic
#2871AC #A528AC #AC6328 #2FAC28
square
#2871AC #A528AC #AC6328 #2FAC28
split-complementary
#2871AC #AC282F #ACA528
monochromatic
#113049 #1C507A #2871AC #3F90D2 #71ADDE

Accessibility & contrast

On white

5.19
#2871AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2871AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871AC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871AC#FFFFFF#000000##FFFFFF
##2871AC1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5674AE
Deuteranopia (green-blind)
#4367AB
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2871ac;
/* rgb */ color: rgb(40, 113, 172);
/* oklch */ color: oklch(53.3% 0.117 247.0);
Tailwind
colors: {
  custom: {
    50: '#7599c5',
    500: '#2871ac',
    950: '#000000',
  },
}
SCSS
$custom: #2871ac;
$custom-light: #7599c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2871ac",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 206.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53255,
    "c": 0.11686,
    "h": 247
  },
  "luminance": 0.1524
}

Semantic roles & 50–950 ramp

primary
#2871AC
secondary
#C5936B
accent
#8B42E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2871AC

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

Preview Lab → · Contrast checker → · Palette generator →

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