#2871A2#2871A2

#2871A2 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.7% C 0.105 H 242.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2871A2
RGBrgb(40, 113, 162)
HSLhsl(204, 60%, 40%)
HSVhsv(204, 75%, 64%)
CMYKcmyk(75.3%, 30.2%, 0%, 36.5%)
CIE-LABlab(45.45, -5.31, -32.78)
CIE-LCHlch(45.45, 33.21, 260.80°)
OKLaboklab(52.69% -0.0488 -0.0928)
OKLCHoklch(52.69% 0.105 242.3)
XYZxyz(13.2993, 14.8685, 36.3444)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871A2 #A25928
analogous
#28A296 #2871A2 #2834A2
triadic
#2871A2 #A22871 #71A228
tetradic
#2871A2 #9628A2 #A25928 #34A228
square
#2871A2 #9628A2 #A25928 #34A228
split-complementary
#2871A2 #A22834 #A29628
monochromatic
#102D40 #1C4F71 #2871A2 #3992CE #6AADDA

Accessibility & contrast

On white

5.28
#2871A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2871A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871A2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871A2#FFFFFF#000000##FFFFFF
##2871A21.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A72A4
Deuteranopia (green-blind)
#4966A1
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2871a2;
/* rgb */ color: rgb(40, 113, 162);
/* oklch */ color: oklch(52.7% 0.105 242.3);
Tailwind
colors: {
  custom: {
    50: '#7399be',
    500: '#2871a2',
    950: '#000000',
  },
}
SCSS
$custom: #2871a2;
$custom-light: #7399be;
$custom-dark: #000000;
JSON
{
  "hex": "#2871a2",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 204.098,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52691,
    "c": 0.10481,
    "h": 242.3
  },
  "luminance": 0.1487
}

Semantic roles & 50–950 ramp

primary
#2871A2
secondary
#C18A65
accent
#8444E4
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2871A2

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

Preview Lab → · Contrast checker → · Palette generator →

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