#2878A4#2878A4

#2878A4 is a mid, moderate cyan. Relative luminance 0.166; OKLCH L 54.5% C 0.102 H 237.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2878A4
RGBrgb(40, 120, 164)
HSLhsl(201, 61%, 40%)
HSVhsv(201, 76%, 64%)
CMYKcmyk(75.6%, 26.8%, 0%, 35.7%)
CIE-LABlab(47.70, -8.72, -30.43)
CIE-LCHlch(47.70, 31.65, 254.01°)
OKLaboklab(54.51% -0.055 -0.0859)
OKLCHoklch(54.51% 0.102 237.3)
XYZxyz(14.2897, 16.5627, 37.5586)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2878A4 #A45428
analogous
#28A492 #2878A4 #283AA4
triadic
#2878A4 #A42878 #78A428
tetradic
#2878A4 #9228A4 #A45428 #3AA428
square
#2878A4 #9228A4 #A45428 #3AA428
split-complementary
#2878A4 #A4283A #A49228
monochromatic
#103042 #1C5473 #2878A4 #3A9ACF #6BB3DB

Accessibility & contrast

On white

4.87
#2878A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#2878A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2878A4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2878A4#FFFFFF#000000##FFFFFF
##2878A41.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6378A6
Deuteranopia (green-blind)
#526CA3
Tritanopia (blue-blind)
#008387
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2878a4;
/* rgb */ color: rgb(40, 120, 164);
/* oklch */ color: oklch(54.5% 0.102 237.3);
Tailwind
colors: {
  custom: {
    50: '#749ebf',
    500: '#2878a4',
    950: '#000000',
  },
}
SCSS
$custom: #2878a4;
$custom-light: #749ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2878a4",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 164
  },
  "hsl": {
    "h": 201.29,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.54507,
    "c": 0.10199,
    "h": 237.3
  },
  "luminance": 0.16564
}

Semantic roles & 50–950 ramp

primary
#2878A4
secondary
#C18766
accent
#7D44E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2878A4

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

Preview Lab → · Contrast checker → · Palette generator →

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