#2871A4#2871A4

#2871A4 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.8% C 0.107 H 243.3°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2871A4
RGBrgb(40, 113, 164)
HSLhsl(205, 61%, 40%)
HSVhsv(205, 76%, 64%)
CMYKcmyk(75.6%, 31.1%, 0%, 35.7%)
CIE-LABlab(45.55, -4.57, -33.80)
CIE-LCHlch(45.55, 34.11, 262.30°)
OKLaboklab(52.8% -0.0481 -0.0957)
OKLCHoklch(52.8% 0.107 243.3)
XYZxyz(13.4784, 14.9401, 37.2881)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871A4 #A45B28
analogous
#28A499 #2871A4 #2833A4
triadic
#2871A4 #A42871 #71A428
tetradic
#2871A4 #9928A4 #A45B28 #33A428
square
#2871A4 #9928A4 #A45B28 #33A428
split-complementary
#2871A4 #A42833 #A49928
monochromatic
#102D42 #1C4F73 #2871A4 #3A92CF #6BADDB

Accessibility & contrast

On white

5.27
#2871A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2871A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871A4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871A4#FFFFFF#000000##FFFFFF
##2871A41.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5972A6
Deuteranopia (green-blind)
#4867A3
Tritanopia (blue-blind)
#007D83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2871a4;
/* rgb */ color: rgb(40, 113, 164);
/* oklch */ color: oklch(52.8% 0.107 243.3);
Tailwind
colors: {
  custom: {
    50: '#7499bf',
    500: '#2871a4',
    950: '#000000',
  },
}
SCSS
$custom: #2871a4;
$custom-light: #7499bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2871a4",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 164
  },
  "hsl": {
    "h": 204.677,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.52801,
    "c": 0.10717,
    "h": 243.3
  },
  "luminance": 0.14942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2871A4

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

Preview Lab → · Contrast checker → · Palette generator →

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