#2872B8#2872B8

#2872B8 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.131 H 250.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#2872B8
RGBrgb(40, 114, 184)
HSLhsl(209, 64%, 44%)
HSVhsv(209, 78%, 72%)
CMYKcmyk(78.3%, 38%, 0%, 27.8%)
CIE-LABlab(46.90, 2.28, -43.34)
CIE-LCHlch(46.90, 43.40, 273.01°)
OKLaboklab(54.21% -0.0433 -0.1236)
OKLCHoklch(54.21% 0.131 250.7)
XYZxyz(15.5408, 15.9446, 47.5967)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872B8 #B86E28
analogous
#28B8B6 #2872B8 #282AB8
triadic
#2872B8 #B82872 #72B828
tetradic
#2872B8 #B628B8 #B86E28 #2AB828
square
#2872B8 #B628B8 #B86E28 #2AB828
split-complementary
#2872B8 #B8282A #B8B628
monochromatic
#123453 #1D5386 #2872B8 #4691D7 #79AFE2

Accessibility & contrast

On white

5.01
#2872B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2872B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872B8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872B8#FFFFFF#000000##FFFFFF
##2872B81.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5176BB
Deuteranopia (green-blind)
#3B69B7
Tritanopia (blue-blind)
#00838C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2872b8;
/* rgb */ color: rgb(40, 114, 184);
/* oklch */ color: oklch(54.2% 0.131 250.7);
Tailwind
colors: {
  custom: {
    50: '#779ace',
    500: '#2872b8',
    950: '#000000',
  },
}
SCSS
$custom: #2872b8;
$custom-light: #779ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2872b8",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 184
  },
  "hsl": {
    "h": 209.167,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54206,
    "c": 0.13098,
    "h": 250.7
  },
  "luminance": 0.15946
}

Semantic roles & 50–950 ramp

primary
#2872B8
secondary
#CA9D72
accent
#9241E7
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2872B8

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

Preview Lab → · Contrast checker → · Palette generator →

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