#2877A5#2877A5

#2877A5 is a mid, moderate cyan. Relative luminance 0.164; OKLCH L 54.3% C 0.104 H 238.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#2877A5
RGBrgb(40, 119, 165)
HSLhsl(202, 61%, 40%)
HSVhsv(202, 76%, 65%)
CMYKcmyk(75.8%, 27.9%, 0%, 35.3%)
CIE-LABlab(47.44, -7.77, -31.42)
CIE-LCHlch(47.44, 32.37, 256.11°)
OKLaboklab(54.32% -0.0537 -0.0888)
OKLCHoklch(54.32% 0.104 238.8)
XYZxyz(14.2608, 16.3597, 37.9962)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877A5 #A55628
analogous
#28A595 #2877A5 #2838A5
triadic
#2877A5 #A52877 #77A528
tetradic
#2877A5 #9528A5 #A55628 #38A528
square
#2877A5 #9528A5 #A55628 #38A528
split-complementary
#2877A5 #A52838 #A59528
monochromatic
#103042 #1C5374 #2877A5 #3B99CF #6CB2DB

Accessibility & contrast

On white

4.92
#2877A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#2877A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2877A5
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877A5#FFFFFF#000000##FFFFFF
##2877A51.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6177A7
Deuteranopia (green-blind)
#506BA4
Tritanopia (blue-blind)
#008387
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2877a5;
/* rgb */ color: rgb(40, 119, 165);
/* oklch */ color: oklch(54.3% 0.104 238.8);
Tailwind
colors: {
  custom: {
    50: '#749ec0',
    500: '#2877a5',
    950: '#000000',
  },
}
SCSS
$custom: #2877a5;
$custom-light: #749ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2877a5",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 165
  },
  "hsl": {
    "h": 202.08,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.54315,
    "c": 0.10374,
    "h": 238.8
  },
  "luminance": 0.16361
}

Semantic roles & 50–950 ramp

primary
#2877A5
secondary
#C28867
accent
#7F44E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2877A5

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

Preview Lab → · Contrast checker → · Palette generator →

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