#2877A8#2877A8

#2877A8 is a mid, moderate cyan. Relative luminance 0.165; OKLCH L 54.5% C 0.107 H 240.5°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#2877A8
RGBrgb(40, 119, 168)
HSLhsl(203, 62%, 41%)
HSVhsv(203, 76%, 66%)
CMYKcmyk(76.2%, 29.2%, 0%, 34.1%)
CIE-LABlab(47.59, -6.68, -32.95)
CIE-LCHlch(47.59, 33.62, 258.54°)
OKLaboklab(54.47% -0.0527 -0.0932)
OKLCHoklch(54.47% 0.107 240.5)
XYZxyz(14.5370, 16.4702, 39.4511)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877A8 #A85928
analogous
#28A899 #2877A8 #2837A8
triadic
#2877A8 #A82877 #77A828
tetradic
#2877A8 #9928A8 #A85928 #37A828
square
#2877A8 #9928A8 #A85928 #37A828
split-complementary
#2877A8 #A82837 #A89928
monochromatic
#103145 #1C5477 #2877A8 #3D98D1 #6EB2DC

Accessibility & contrast

On white

4.89
#2877A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#2877A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2877A8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877A8#FFFFFF#000000##FFFFFF
##2877A81.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6078AA
Deuteranopia (green-blind)
#4F6CA7
Tritanopia (blue-blind)
#008388
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2877a8;
/* rgb */ color: rgb(40, 119, 168);
/* oklch */ color: oklch(54.5% 0.107 240.5);
Tailwind
colors: {
  custom: {
    50: '#759ec2',
    500: '#2877a8',
    950: '#000000',
  },
}
SCSS
$custom: #2877a8;
$custom-light: #759ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2877a8",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 168
  },
  "hsl": {
    "h": 202.969,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54475,
    "c": 0.10707,
    "h": 240.5
  },
  "luminance": 0.16472
}

Semantic roles & 50–950 ramp

primary
#2877A8
secondary
#C38B69
accent
#8143E5
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2877A8

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

Preview Lab → · Contrast checker → · Palette generator →

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