#2877B1#2877B1

#2877B1 is a mid, moderate cyan. Relative luminance 0.168; OKLCH L 55.0% C 0.118 H 244.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#2877B1
RGBrgb(40, 119, 177)
HSLhsl(205, 63%, 43%)
HSVhsv(205, 77%, 69%)
CMYKcmyk(77.4%, 32.8%, 0%, 30.6%)
CIE-LABlab(48.03, -3.38, -37.49)
CIE-LCHlch(48.03, 37.64, 264.85°)
OKLaboklab(54.97% -0.0499 -0.1064)
OKLCHoklch(54.97% 0.118 244.9)
XYZxyz(15.4046, 16.8173, 44.0206)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877B1 #B16228
analogous
#28B1A6 #2877B1 #2833B1
triadic
#2877B1 #B12877 #77B128
tetradic
#2877B1 #A628B1 #B16228 #33B128
square
#2877B1 #A628B1 #B16228 #33B128
split-complementary
#2877B1 #B12833 #B1A628
monochromatic
#11344D #1D557F #2877B1 #4296D4 #74B2E0

Accessibility & contrast

On white

4.81
#2877B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#2877B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2877B1
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877B1#FFFFFF#000000##FFFFFF
##2877B11.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C79B3
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#00858C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2877b1;
/* rgb */ color: rgb(40, 119, 177);
/* oklch */ color: oklch(55.0% 0.118 244.9);
Tailwind
colors: {
  custom: {
    50: '#769ec8',
    500: '#2877b1',
    950: '#000000',
  },
}
SCSS
$custom: #2877b1;
$custom-light: #769ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2877b1",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 177
  },
  "hsl": {
    "h": 205.401,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54971,
    "c": 0.11753,
    "h": 244.9
  },
  "luminance": 0.16819
}

Semantic roles & 50–950 ramp

primary
#2877B1
secondary
#C7946E
accent
#8742E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2877B1

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

Preview Lab → · Contrast checker → · Palette generator →

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