#2877A4#2877A4

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

Color values

HEX#2877A4
RGBrgb(40, 119, 164)
HSLhsl(202, 61%, 40%)
HSVhsv(202, 76%, 64%)
CMYKcmyk(75.6%, 27.4%, 0%, 35.7%)
CIE-LABlab(47.40, -8.13, -30.91)
CIE-LCHlch(47.40, 31.96, 255.26°)
OKLaboklab(54.26% -0.054 -0.0873)
OKLCHoklch(54.26% 0.103 238.2)
XYZxyz(14.1701, 16.3234, 37.5187)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877A4 #A45528
analogous
#28A493 #2877A4 #2839A4
triadic
#2877A4 #A42877 #77A428
tetradic
#2877A4 #9328A4 #A45528 #39A428
square
#2877A4 #9328A4 #A45528 #39A428
split-complementary
#2877A4 #A42839 #A49328
monochromatic
#103042 #1C5373 #2877A4 #3A99CF #6BB3DB

Accessibility & contrast

On white

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

On black

4.26
#2877A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2877A4#FFFFFF#000000##FFFFFF
##2877A41.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6277A6
Deuteranopia (green-blind)
#516BA3
Tritanopia (blue-blind)
#008287
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2877a4;
/* rgb */ color: rgb(40, 119, 164);
/* oklch */ color: oklch(54.3% 0.103 238.2);
Tailwind
colors: {
  custom: {
    50: '#749ebf',
    500: '#2877a4',
    950: '#000000',
  },
}
SCSS
$custom: #2877a4;
$custom-light: #749ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2877a4",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 164
  },
  "hsl": {
    "h": 201.774,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.54262,
    "c": 0.10265,
    "h": 238.2
  },
  "luminance": 0.16325
}

Semantic roles & 50–950 ramp

primary
#2877A4
secondary
#C18766
accent
#7E44E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2877A4

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

Preview Lab → · Contrast checker → · Palette generator →

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