#2878AD#2878AD

#2878AD is a mid, moderate cyan. Relative luminance 0.169; OKLCH L 55.0% C 0.112 H 242.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#2878AD
RGBrgb(40, 120, 173)
HSLhsl(204, 62%, 42%)
HSVhsv(204, 77%, 68%)
CMYKcmyk(76.9%, 30.6%, 0%, 32.2%)
CIE-LABlab(48.13, -5.45, -35.00)
CIE-LCHlch(48.13, 35.43, 261.15°)
OKLaboklab(54.99% -0.0521 -0.0992)
OKLCHoklch(54.99% 0.112 242.3)
XYZxyz(15.1314, 16.8994, 41.9915)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2878AD #AD5D28
analogous
#28ADA0 #2878AD #2836AD
triadic
#2878AD #AD2878 #78AD28
tetradic
#2878AD #A028AD #AD5D28 #36AD28
square
#2878AD #A028AD #AD5D28 #36AD28
split-complementary
#2878AD #AD2836 #ADA028
monochromatic
#11334A #1D567B #2878AD #3F98D3 #71B3DE

Accessibility & contrast

On white

4.79
#2878AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#2878AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2878AD
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2878AD#FFFFFF#000000##FFFFFF
##2878AD1.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)
#5F79AF
Deuteranopia (green-blind)
#4D6DAC
Tritanopia (blue-blind)
#00858B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2878ad;
/* rgb */ color: rgb(40, 120, 173);
/* oklch */ color: oklch(55.0% 0.112 242.3);
Tailwind
colors: {
  custom: {
    50: '#759ec5',
    500: '#2878ad',
    950: '#000000',
  },
}
SCSS
$custom: #2878ad;
$custom-light: #759ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2878ad",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 173
  },
  "hsl": {
    "h": 203.91,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.54988,
    "c": 0.112,
    "h": 242.3
  },
  "luminance": 0.16901
}

Semantic roles & 50–950 ramp

primary
#2878AD
secondary
#C58F6C
accent
#8342E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2878AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2878AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva