#2877A2#2877A2

#2877A2 is a mid, moderate cyan. Relative luminance 0.163; OKLCH L 54.2% C 0.101 H 237.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2877A2
RGBrgb(40, 119, 162)
HSLhsl(201, 60%, 40%)
HSVhsv(201, 75%, 64%)
CMYKcmyk(75.3%, 26.5%, 0%, 36.5%)
CIE-LABlab(47.30, -8.86, -29.89)
CIE-LCHlch(47.30, 31.17, 253.49°)
OKLaboklab(54.16% -0.0547 -0.0843)
OKLCHoklch(54.16% 0.101 237)
XYZxyz(13.9909, 16.2518, 36.5750)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877A2 #A25328
analogous
#28A290 #2877A2 #283AA2
triadic
#2877A2 #A22877 #77A228
tetradic
#2877A2 #9028A2 #A25328 #3AA228
square
#2877A2 #9028A2 #A25328 #3AA228
split-complementary
#2877A2 #A2283A #A29028
monochromatic
#102F40 #1C5371 #2877A2 #399ACE #6AB3DA

Accessibility & contrast

On white

4.94
#2877A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#2877A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2877A2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877A2#FFFFFF#000000##FFFFFF
##2877A21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6277A4
Deuteranopia (green-blind)
#526BA1
Tritanopia (blue-blind)
#008286
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2877a2;
/* rgb */ color: rgb(40, 119, 162);
/* oklch */ color: oklch(54.2% 0.101 237.0);
Tailwind
colors: {
  custom: {
    50: '#739ebd',
    500: '#2877a2',
    950: '#000000',
  },
}
SCSS
$custom: #2877a2;
$custom-light: #739ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2877a2",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 162
  },
  "hsl": {
    "h": 201.148,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.54158,
    "c": 0.10051,
    "h": 237
  },
  "luminance": 0.16253
}

Semantic roles & 50–950 ramp

primary
#2877A2
secondary
#C18565
accent
#7C44E4
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2877A2

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

Preview Lab → · Contrast checker → · Palette generator →

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