#2879AF#2879AF

#2879AF is a mid, moderate cyan. Relative luminance 0.172; OKLCH L 55.3% C 0.114 H 242.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2879AF
RGBrgb(40, 121, 175)
HSLhsl(204, 63%, 42%)
HSVhsv(204, 77%, 69%)
CMYKcmyk(77.1%, 30.9%, 0%, 31.4%)
CIE-LABlab(48.53, -5.31, -35.53)
CIE-LCHlch(48.53, 35.93, 261.50°)
OKLaboklab(55.34% -0.0524 -0.1007)
OKLCHoklch(55.34% 0.114 242.5)
XYZxyz(15.4473, 17.2192, 43.0586)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2879AF #AF5E28
analogous
#28AFA2 #2879AF #2835AF
triadic
#2879AF #AF2879 #79AF28
tetradic
#2879AF #A228AF #AF5E28 #35AF28
square
#2879AF #A228AF #AF5E28 #35AF28
split-complementary
#2879AF #AF2835 #AFA228
monochromatic
#11344B #1D577D #2879AF #4199D4 #73B4DF

Accessibility & contrast

On white

4.73
#2879AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#2879AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2879AF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2879AF#FFFFFF#000000##FFFFFF
##2879AF1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#607AB1
Deuteranopia (green-blind)
#4D6EAE
Tritanopia (blue-blind)
#00868C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2879af;
/* rgb */ color: rgb(40, 121, 175);
/* oklch */ color: oklch(55.3% 0.114 242.5);
Tailwind
colors: {
  custom: {
    50: '#769fc7',
    500: '#2879af',
    950: '#000000',
  },
}
SCSS
$custom: #2879af;
$custom-light: #769fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2879af",
  "rgb": {
    "r": 40,
    "g": 121,
    "b": 175
  },
  "hsl": {
    "h": 204,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.55338,
    "c": 0.1135,
    "h": 242.5
  },
  "luminance": 0.17221
}

Semantic roles & 50–950 ramp

primary
#2879AF
secondary
#C6906D
accent
#8442E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2879AF

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

Preview Lab → · Contrast checker → · Palette generator →

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