#2872BC#2872BC

#2872BC is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.136 H 251.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2872BC
RGBrgb(40, 114, 188)
HSLhsl(210, 65%, 45%)
HSVhsv(210, 79%, 74%)
CMYKcmyk(78.7%, 39.4%, 0%, 26.3%)
CIE-LABlab(47.12, 3.79, -45.30)
CIE-LCHlch(47.12, 45.45, 274.79°)
OKLaboklab(54.45% -0.0424 -0.1293)
OKLCHoklch(54.45% 0.136 251.9)
XYZxyz(15.9661, 16.1147, 49.8362)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872BC #BC7228
analogous
#28BCBC #2872BC #2828BC
triadic
#2872BC #BC2872 #72BC28
tetradic
#2872BC #BC28BC #BC7228 #28BC28
square
#2872BC #BC28BC #BC7228 #28BC28
split-complementary
#2872BC #BC2828 #BCBC28
monochromatic
#133557 #1D538A #2872BC #4991D8 #7BAFE3

Accessibility & contrast

On white

4.97
#2872BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#2872BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872BC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872BC#FFFFFF#000000##FFFFFF
##2872BC1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F77BF
Deuteranopia (green-blind)
#376ABB
Tritanopia (blue-blind)
#00848E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2872bc;
/* rgb */ color: rgb(40, 114, 188);
/* oklch */ color: oklch(54.5% 0.136 251.9);
Tailwind
colors: {
  custom: {
    50: '#789ad0',
    500: '#2872bc',
    950: '#000000',
  },
}
SCSS
$custom: #2872bc;
$custom-light: #789ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#2872bc",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 188
  },
  "hsl": {
    "h": 210,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54452,
    "c": 0.13611,
    "h": 251.9
  },
  "luminance": 0.16117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2872BC

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

Preview Lab → · Contrast checker → · Palette generator →

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