#2877C4#2877C4

#2877C4 is a mid, vivid cyan. Relative luminance 0.176; OKLCH L 56.1% C 0.141 H 251.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#2877C4
RGBrgb(40, 119, 196)
HSLhsl(210, 66%, 46%)
HSVhsv(210, 80%, 77%)
CMYKcmyk(79.6%, 39.3%, 0%, 23.1%)
CIE-LABlab(49.04, 3.73, -46.85)
CIE-LCHlch(49.04, 47.00, 274.55°)
OKLaboklab(56.1% -0.0447 -0.1338)
OKLCHoklch(56.1% 0.141 251.5)
XYZxyz(17.4319, 17.6282, 54.6977)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877C4 #C47528
analogous
#28C4C3 #2877C4 #2829C4
triadic
#2877C4 #C42877 #77C428
tetradic
#2877C4 #C328C4 #C47528 #29C428
square
#2877C4 #C328C4 #C47528 #29C428
split-complementary
#2877C4 #C42829 #C4C328
monochromatic
#13395E #1E5891 #2877C4 #4E96DB #81B4E5

Accessibility & contrast

On white

4.64
#2877C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#2877C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2877C4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877C4#FFFFFF#000000##FFFFFF
##2877C41.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#527CC7
Deuteranopia (green-blind)
#396EC2
Tritanopia (blue-blind)
#008994
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2877c4;
/* rgb */ color: rgb(40, 119, 196);
/* oklch */ color: oklch(56.1% 0.141 251.5);
Tailwind
colors: {
  custom: {
    50: '#7a9dd6',
    500: '#2877c4',
    950: '#000000',
  },
}
SCSS
$custom: #2877c4;
$custom-light: #7a9dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#2877c4",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 196
  },
  "hsl": {
    "h": 209.615,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56097,
    "c": 0.14109,
    "h": 251.5
  },
  "luminance": 0.1763
}

Semantic roles & 50–950 ramp

primary
#2877C4
secondary
#CEA37A
accent
#933FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0E14
muted
#7C7E83

Preview Lab

Preview with #2877C4

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

Preview Lab → · Contrast checker → · Palette generator →

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