#2872BD#2872BD

#2872BD is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.5% C 0.137 H 252.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2872BD
RGBrgb(40, 114, 189)
HSLhsl(210, 65%, 45%)
HSVhsv(210, 79%, 74%)
CMYKcmyk(78.8%, 39.7%, 0%, 25.9%)
CIE-LABlab(47.18, 4.17, -45.78)
CIE-LCHlch(47.18, 45.97, 275.21°)
OKLaboklab(54.52% -0.0421 -0.1308)
OKLCHoklch(54.52% 0.137 252.1)
XYZxyz(16.0742, 16.1579, 50.4059)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872BD #BD7328
analogous
#28BDBD #2872BD #2828BD
triadic
#2872BD #BD2872 #72BD28
tetradic
#2872BD #BD28BD #BD7328 #28BD28
square
#2872BD #BD28BD #BD7328 #28BD28
split-complementary
#2872BD #BD2828 #BDBD28
monochromatic
#133558 #1D548A #2872BD #4A91D9 #7CAFE3

Accessibility & contrast

On white

4.96
#2872BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2872BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872BD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872BD#FFFFFF#000000##FFFFFF
##2872BD1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E77C0
Deuteranopia (green-blind)
#366ABC
Tritanopia (blue-blind)
#00848E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2872bd;
/* rgb */ color: rgb(40, 114, 189);
/* oklch */ color: oklch(54.5% 0.137 252.1);
Tailwind
colors: {
  custom: {
    50: '#799ad1',
    500: '#2872bd',
    950: '#000000',
  },
}
SCSS
$custom: #2872bd;
$custom-light: #799ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#2872bd",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 189
  },
  "hsl": {
    "h": 210.201,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54515,
    "c": 0.1374,
    "h": 252.1
  },
  "luminance": 0.1616
}

Semantic roles & 50–950 ramp

primary
#2872BD
secondary
#CBA175
accent
#9440E8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E14
muted
#7C7E82

Preview Lab

Preview with #2872BD

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

Preview Lab → · Contrast checker → · Palette generator →

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