#2871A5#2871A5

#2871A5 is a mid, moderate cyan. Relative luminance 0.150; OKLCH L 52.9% C 0.108 H 243.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2871A5
RGBrgb(40, 113, 165)
HSLhsl(205, 61%, 40%)
HSVhsv(205, 76%, 65%)
CMYKcmyk(75.8%, 31.5%, 0%, 35.3%)
CIE-LABlab(45.60, -4.20, -34.31)
CIE-LCHlch(45.60, 34.57, 263.01°)
OKLaboklab(52.86% -0.0478 -0.0972)
OKLCHoklch(52.86% 0.108 243.8)
XYZxyz(13.5691, 14.9764, 37.7656)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871A5 #A55C28
analogous
#28A59B #2871A5 #2832A5
triadic
#2871A5 #A52871 #71A528
tetradic
#2871A5 #9B28A5 #A55C28 #32A528
square
#2871A5 #9B28A5 #A55C28 #32A528
split-complementary
#2871A5 #A52832 #A59B28
monochromatic
#102E42 #1C4F74 #2871A5 #3B92CF #6CADDB

Accessibility & contrast

On white

5.26
#2871A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2871A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871A5
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871A5#FFFFFF#000000##FFFFFF
##2871A51.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5972A7
Deuteranopia (green-blind)
#4867A4
Tritanopia (blue-blind)
#007E83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2871a5;
/* rgb */ color: rgb(40, 113, 165);
/* oklch */ color: oklch(52.9% 0.108 243.8);
Tailwind
colors: {
  custom: {
    50: '#7499c0',
    500: '#2871a5',
    950: '#000000',
  },
}
SCSS
$custom: #2871a5;
$custom-light: #7499c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2871a5",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 165
  },
  "hsl": {
    "h": 204.96,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52857,
    "c": 0.10835,
    "h": 243.8
  },
  "luminance": 0.14978
}

Semantic roles & 50–950 ramp

primary
#2871A5
secondary
#C28D67
accent
#8644E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2871A5

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

Preview Lab → · Contrast checker → · Palette generator →

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