#2872AE#2872AE

#2872AE is a mid, moderate cyan. Relative luminance 0.155; OKLCH L 53.6% C 0.118 H 247.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2872AE
RGBrgb(40, 114, 174)
HSLhsl(207, 63%, 42%)
HSVhsv(207, 77%, 68%)
CMYKcmyk(77%, 34.5%, 0%, 31.8%)
CIE-LABlab(46.37, -1.47, -38.37)
CIE-LCHlch(46.37, 38.40, 267.81°)
OKLaboklab(53.61% -0.0461 -0.1091)
OKLCHoklch(53.61% 0.118 247.1)
XYZxyz(14.5294, 15.5400, 42.2700)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872AE #AE6428
analogous
#28AEA7 #2872AE #282FAE
triadic
#2872AE #AE2872 #72AE28
tetradic
#2872AE #A728AE #AE6428 #2FAE28
square
#2872AE #A728AE #AE6428 #2FAE28
split-complementary
#2872AE #AE282F #AEA728
monochromatic
#11314A #1D517C #2872AE #4091D3 #72AEDF

Accessibility & contrast

On white

5.11
#2872AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2872AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872AE
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872AE#FFFFFF#000000##FFFFFF
##2872AE1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5675B1
Deuteranopia (green-blind)
#4368AD
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2872ae;
/* rgb */ color: rgb(40, 114, 174);
/* oklch */ color: oklch(53.6% 0.118 247.1);
Tailwind
colors: {
  custom: {
    50: '#759ac6',
    500: '#2872ae',
    950: '#000000',
  },
}
SCSS
$custom: #2872ae;
$custom-light: #759ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#2872ae",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 174
  },
  "hsl": {
    "h": 206.866,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53609,
    "c": 0.1184,
    "h": 247.1
  },
  "luminance": 0.15542
}

Semantic roles & 50–950 ramp

primary
#2872AE
secondary
#C6946C
accent
#8B42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2872AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2872AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva