#2877B3#2877B3

#2877B3 is a mid, moderate cyan. Relative luminance 0.169; OKLCH L 55.1% C 0.120 H 245.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#2877B3
RGBrgb(40, 119, 179)
HSLhsl(206, 63%, 43%)
HSVhsv(206, 78%, 70%)
CMYKcmyk(77.7%, 33.5%, 0%, 29.8%)
CIE-LABlab(48.13, -2.64, -38.49)
CIE-LCHlch(48.13, 38.58, 266.08°)
OKLaboklab(55.08% -0.0493 -0.1093)
OKLCHoklch(55.08% 0.12 245.7)
XYZxyz(15.6054, 16.8976, 45.0782)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877B3 #B36428
analogous
#28B3A9 #2877B3 #2832B3
triadic
#2877B3 #B32877 #77B328
tetradic
#2877B3 #A928B3 #B36428 #32B328
square
#2877B3 #A928B3 #B36428 #32B328
split-complementary
#2877B3 #B32832 #B3A928
monochromatic
#12344F #1D5681 #2877B3 #4396D5 #75B2E0

Accessibility & contrast

On white

4.79
#2877B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#2877B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2877B3
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877B3#FFFFFF#000000##FFFFFF
##2877B31.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B79B6
Deuteranopia (green-blind)
#476CB2
Tritanopia (blue-blind)
#00868D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2877b3;
/* rgb */ color: rgb(40, 119, 179);
/* oklch */ color: oklch(55.1% 0.120 245.7);
Tailwind
colors: {
  custom: {
    50: '#779dca',
    500: '#2877b3',
    950: '#000000',
  },
}
SCSS
$custom: #2877b3;
$custom-light: #779dca;
$custom-dark: #000000;
JSON
{
  "hex": "#2877b3",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 179
  },
  "hsl": {
    "h": 205.899,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.55085,
    "c": 0.11993,
    "h": 245.7
  },
  "luminance": 0.16899
}

Semantic roles & 50–950 ramp

primary
#2877B3
secondary
#C8956F
accent
#8941E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2877B3

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

Preview Lab → · Contrast checker → · Palette generator →

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