#2877B2#2877B2

#2877B2 is a mid, moderate cyan. Relative luminance 0.169; OKLCH L 55.0% C 0.119 H 245.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#2877B2
RGBrgb(40, 119, 178)
HSLhsl(206, 63%, 43%)
HSVhsv(206, 78%, 70%)
CMYKcmyk(77.5%, 33.1%, 0%, 30.2%)
CIE-LABlab(48.08, -3.01, -37.99)
CIE-LCHlch(48.08, 38.11, 265.47°)
OKLaboklab(55.03% -0.0496 -0.1079)
OKLCHoklch(55.03% 0.119 245.3)
XYZxyz(15.5047, 16.8573, 44.5475)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877B2 #B26328
analogous
#28B2A8 #2877B2 #2832B2
triadic
#2877B2 #B22877 #77B228
tetradic
#2877B2 #A828B2 #B26328 #32B228
square
#2877B2 #A828B2 #B26328 #32B228
split-complementary
#2877B2 #B22832 #B2A828
monochromatic
#12344E #1D5680 #2877B2 #4396D5 #75B2E0

Accessibility & contrast

On white

4.80
#2877B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#2877B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2877B2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877B2#FFFFFF#000000##FFFFFF
##2877B21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C79B5
Deuteranopia (green-blind)
#486CB1
Tritanopia (blue-blind)
#00858C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2877b2;
/* rgb */ color: rgb(40, 119, 178);
/* oklch */ color: oklch(55.0% 0.119 245.3);
Tailwind
colors: {
  custom: {
    50: '#769dc9',
    500: '#2877b2',
    950: '#000000',
  },
}
SCSS
$custom: #2877b2;
$custom-light: #769dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2877b2",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 178
  },
  "hsl": {
    "h": 205.652,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.55028,
    "c": 0.11873,
    "h": 245.3
  },
  "luminance": 0.16859
}

Semantic roles & 50–950 ramp

primary
#2877B2
secondary
#C7946F
accent
#8841E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2877B2

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

Preview Lab → · Contrast checker → · Palette generator →

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