#2877AF#2877AF

#2877AF is a mid, moderate cyan. Relative luminance 0.167; OKLCH L 54.9% C 0.115 H 244.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2877AF
RGBrgb(40, 119, 175)
HSLhsl(205, 63%, 42%)
HSVhsv(205, 77%, 69%)
CMYKcmyk(77.1%, 32%, 0%, 31.4%)
CIE-LABlab(47.93, -4.12, -36.49)
CIE-LCHlch(47.93, 36.72, 263.56°)
OKLaboklab(54.86% -0.0505 -0.1035)
OKLCHoklch(54.86% 0.115 244)
XYZxyz(15.2068, 16.7381, 42.9785)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2877AF #AF6028
analogous
#28AFA4 #2877AF #2833AF
triadic
#2877AF #AF2877 #77AF28
tetradic
#2877AF #A428AF #AF6028 #33AF28
square
#2877AF #A428AF #AF6028 #33AF28
split-complementary
#2877AF #AF2833 #AFA428
monochromatic
#11334B #1D557D #2877AF #4197D4 #73B2DF

Accessibility & contrast

On white

4.83
#2877AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#2877AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2877AF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2877AF#FFFFFF#000000##FFFFFF
##2877AF1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D79B1
Deuteranopia (green-blind)
#4A6CAE
Tritanopia (blue-blind)
#00858B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2877af;
/* rgb */ color: rgb(40, 119, 175);
/* oklch */ color: oklch(54.9% 0.115 244.0);
Tailwind
colors: {
  custom: {
    50: '#769ec7',
    500: '#2877af',
    950: '#000000',
  },
}
SCSS
$custom: #2877af;
$custom-light: #769ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#2877af",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 175
  },
  "hsl": {
    "h": 204.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54859,
    "c": 0.11515,
    "h": 244
  },
  "luminance": 0.1674
}

Semantic roles & 50–950 ramp

primary
#2877AF
secondary
#C6926D
accent
#8642E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2877AF

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

Preview Lab → · Contrast checker → · Palette generator →

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