#2872C5#2872C5

#2872C5 is a mid, vivid cyan. Relative luminance 0.165; OKLCH L 55.0% C 0.148 H 254.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#2872C5
RGBrgb(40, 114, 197)
HSLhsl(212, 66%, 46%)
HSVhsv(212, 80%, 77%)
CMYKcmyk(79.7%, 42.1%, 0%, 22.7%)
CIE-LABlab(47.64, 7.21, -49.65)
CIE-LCHlch(47.64, 50.17, 278.26°)
OKLaboklab(55.03% -0.0403 -0.1421)
OKLCHoklch(55.03% 0.148 254.2)
XYZxyz(16.9667, 16.5149, 55.1060)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872C5 #C57B28
analogous
#28C1C5 #2872C5 #2D28C5
triadic
#2872C5 #C52872 #72C528
tetradic
#2872C5 #C528C1 #C57B28 #28C52D
square
#2872C5 #C528C1 #C57B28 #28C52D
split-complementary
#2872C5 #C52D28 #C1C528
monochromatic
#13375F #1E5592 #2872C5 #4F91DB #82B1E6

Accessibility & contrast

On white

4.88
#2872C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#2872C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872C5
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872C5#FFFFFF#000000##FFFFFF
##2872C51.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4979C8
Deuteranopia (green-blind)
#2C6BC3
Tritanopia (blue-blind)
#008692
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2872c5;
/* rgb */ color: rgb(40, 114, 197);
/* oklch */ color: oklch(55.0% 0.148 254.2);
Tailwind
colors: {
  custom: {
    50: '#7a9ad7',
    500: '#2872c5',
    950: '#000000',
  },
}
SCSS
$custom: #2872c5;
$custom-light: #7a9ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#2872c5",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 197
  },
  "hsl": {
    "h": 211.72,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55025,
    "c": 0.14775,
    "h": 254.2
  },
  "luminance": 0.16517
}

Semantic roles & 50–950 ramp

primary
#2872C5
secondary
#CEA77A
accent
#993FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2872C5

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

Preview Lab → · Contrast checker → · Palette generator →

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