#2871A0#2871A0

#2871A0 is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.6% C 0.102 H 241.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2871A0
RGBrgb(40, 113, 160)
HSLhsl(204, 60%, 39%)
HSVhsv(204, 75%, 63%)
CMYKcmyk(75%, 29.4%, 0%, 37.3%)
CIE-LABlab(45.36, -6.04, -31.76)
CIE-LCHlch(45.36, 32.33, 259.23°)
OKLaboklab(52.58% -0.0494 -0.0898)
OKLCHoklch(52.58% 0.103 241.2)
XYZxyz(13.1229, 14.7979, 35.4156)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871A0 #A05728
analogous
#28A093 #2871A0 #2835A0
triadic
#2871A0 #A02871 #71A028
tetradic
#2871A0 #9328A0 #A05728 #35A028
square
#2871A0 #9328A0 #A05728 #35A028
split-complementary
#2871A0 #A02835 #A09328
monochromatic
#102C3E #1C4E6F #2871A0 #3893CD #69ADD9

Accessibility & contrast

On white

5.30
#2871A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2871A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871A0
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871A0#FFFFFF#000000##FFFFFF
##2871A01.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A2
Deuteranopia (green-blind)
#4B669F
Tritanopia (blue-blind)
#007D81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2871a0;
/* rgb */ color: rgb(40, 113, 160);
/* oklch */ color: oklch(52.6% 0.102 241.2);
Tailwind
colors: {
  custom: {
    50: '#7399bc',
    500: '#2871a0',
    950: '#000000',
  },
}
SCSS
$custom: #2871a0;
$custom-light: #7399bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2871a0",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 160
  },
  "hsl": {
    "h": 203.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.52582,
    "c": 0.1025,
    "h": 241.2
  },
  "luminance": 0.14799
}

Semantic roles & 50–950 ramp

primary
#2871A0
secondary
#C08864
accent
#8345E3
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2871A0

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

Preview Lab → · Contrast checker → · Palette generator →

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