#2878B1#2878B1

#2878B1 is a mid, moderate cyan. Relative luminance 0.171; OKLCH L 55.2% C 0.117 H 244.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2878B1
RGBrgb(40, 120, 177)
HSLhsl(205, 63%, 43%)
HSVhsv(205, 77%, 69%)
CMYKcmyk(77.4%, 32.2%, 0%, 30.6%)
CIE-LABlab(48.33, -3.98, -37.02)
CIE-LCHlch(48.33, 37.23, 263.87°)
OKLaboklab(55.21% -0.0508 -0.105)
OKLCHoklch(55.21% 0.117 244.2)
XYZxyz(15.5243, 17.0565, 44.0605)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2878B1 #B16128
analogous
#28B1A6 #2878B1 #2833B1
triadic
#2878B1 #B12878 #78B128
tetradic
#2878B1 #A628B1 #B16128 #33B128
square
#2878B1 #A628B1 #B16128 #33B128
split-complementary
#2878B1 #B12833 #B1A628
monochromatic
#11344D #1D567F #2878B1 #4297D4 #74B3E0

Accessibility & contrast

On white

4.76
#2878B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#2878B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2878B1
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2878B1#FFFFFF#000000##FFFFFF
##2878B11.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E7AB3
Deuteranopia (green-blind)
#4A6DB0
Tritanopia (blue-blind)
#00868C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2878b1;
/* rgb */ color: rgb(40, 120, 177);
/* oklch */ color: oklch(55.2% 0.117 244.2);
Tailwind
colors: {
  custom: {
    50: '#769ec8',
    500: '#2878b1',
    950: '#000000',
  },
}
SCSS
$custom: #2878b1;
$custom-light: #769ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2878b1",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 177
  },
  "hsl": {
    "h": 204.964,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5521,
    "c": 0.11667,
    "h": 244.2
  },
  "luminance": 0.17058
}

Semantic roles & 50–950 ramp

primary
#2878B1
secondary
#C7936E
accent
#8642E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2878B1

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

Preview Lab → · Contrast checker → · Palette generator →

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