#2878A2#2878A2

#2878A2 is a mid, moderate cyan. Relative luminance 0.165; OKLCH L 54.4% C 0.100 H 236.1°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#2878A2
RGBrgb(40, 120, 162)
HSLhsl(201, 60%, 40%)
HSVhsv(201, 75%, 64%)
CMYKcmyk(75.3%, 25.9%, 0%, 36.5%)
CIE-LABlab(47.61, -9.44, -29.40)
CIE-LCHlch(47.61, 30.88, 252.20°)
OKLaboklab(54.4% -0.0557 -0.0829)
OKLCHoklch(54.4% 0.1 236.1)
XYZxyz(14.1105, 16.4910, 36.6148)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2878A2 #A25228
analogous
#28A28F #2878A2 #283BA2
triadic
#2878A2 #A22878 #78A228
tetradic
#2878A2 #8F28A2 #A25228 #3BA228
square
#2878A2 #8F28A2 #A25228 #3BA228
split-complementary
#2878A2 #A2283B #A28F28
monochromatic
#102F40 #1C5471 #2878A2 #399BCE #6AB4DA

Accessibility & contrast

On white

4.89
#2878A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#2878A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2878A2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2878A2#FFFFFF#000000##FFFFFF
##2878A21.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6477A4
Deuteranopia (green-blind)
#536CA1
Tritanopia (blue-blind)
#008386
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2878a2;
/* rgb */ color: rgb(40, 120, 162);
/* oklch */ color: oklch(54.4% 0.100 236.1);
Tailwind
colors: {
  custom: {
    50: '#749ebd',
    500: '#2878a2',
    950: '#000000',
  },
}
SCSS
$custom: #2878a2;
$custom-light: #749ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2878a2",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 162
  },
  "hsl": {
    "h": 200.656,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.54404,
    "c": 0.09988,
    "h": 236.1
  },
  "luminance": 0.16493
}

Semantic roles & 50–950 ramp

primary
#2878A2
secondary
#C18565
accent
#7B44E4
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2878A2

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

Preview Lab → · Contrast checker → · Palette generator →

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