#2872C4#2872C4

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

Color values

HEX#2872C4
RGBrgb(40, 114, 196)
HSLhsl(212, 66%, 46%)
HSVhsv(212, 80%, 77%)
CMYKcmyk(79.6%, 41.8%, 0%, 23.1%)
CIE-LABlab(47.58, 6.83, -49.17)
CIE-LCHlch(47.58, 49.65, 277.90°)
OKLaboklab(54.96% -0.0405 -0.1407)
OKLCHoklch(54.96% 0.146 253.9)
XYZxyz(16.8525, 16.4692, 54.5045)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872C4 #C47A28
analogous
#28C0C4 #2872C4 #2C28C4
triadic
#2872C4 #C42872 #72C428
tetradic
#2872C4 #C428C0 #C47A28 #28C42C
square
#2872C4 #C428C0 #C47A28 #28C42C
split-complementary
#2872C4 #C42C28 #C0C428
monochromatic
#13375E #1E5491 #2872C4 #4E91DB #81B1E5

Accessibility & contrast

On white

4.89
#2872C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#2872C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872C4
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872C4#FFFFFF#000000##FFFFFF
##2872C41.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4978C7
Deuteranopia (green-blind)
#2D6AC2
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2872c4;
/* rgb */ color: rgb(40, 114, 196);
/* oklch */ color: oklch(55.0% 0.146 253.9);
Tailwind
colors: {
  custom: {
    50: '#7a9ad6',
    500: '#2872c4',
    950: '#000000',
  },
}
SCSS
$custom: #2872c4;
$custom-light: #7a9ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#2872c4",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 196
  },
  "hsl": {
    "h": 211.538,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5496,
    "c": 0.14644,
    "h": 253.9
  },
  "luminance": 0.16471
}

Semantic roles & 50–950 ramp

primary
#2872C4
secondary
#CEA67A
accent
#983FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2872C4

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

Preview Lab → · Contrast checker → · Palette generator →

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