#2872A0#2872A0

#2872A0 is a mid, moderate cyan. Relative luminance 0.150; OKLCH L 52.8% C 0.102 H 240.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2872A0
RGBrgb(40, 114, 160)
HSLhsl(203, 60%, 39%)
HSVhsv(203, 75%, 63%)
CMYKcmyk(75%, 28.8%, 0%, 37.3%)
CIE-LABlab(45.66, -6.64, -31.27)
CIE-LCHlch(45.66, 31.97, 258.02°)
OKLaboklab(52.83% -0.0504 -0.0884)
OKLCHoklch(52.83% 0.102 240.3)
XYZxyz(13.2351, 15.0223, 35.4529)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872A0 #A05628
analogous
#28A092 #2872A0 #2836A0
triadic
#2872A0 #A02872 #72A028
tetradic
#2872A0 #9228A0 #A05628 #36A028
square
#2872A0 #9228A0 #A05628 #36A028
split-complementary
#2872A0 #A02836 #A09228
monochromatic
#102C3E #1C4F6F #2872A0 #3894CD #69AED9

Accessibility & contrast

On white

5.24
#2872A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2872A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872A0
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872A0#FFFFFF#000000##FFFFFF
##2872A01.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D72A2
Deuteranopia (green-blind)
#4C679F
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2872a0;
/* rgb */ color: rgb(40, 114, 160);
/* oklch */ color: oklch(52.8% 0.102 240.3);
Tailwind
colors: {
  custom: {
    50: '#739abc',
    500: '#2872a0',
    950: '#000000',
  },
}
SCSS
$custom: #2872a0;
$custom-light: #739abc;
$custom-dark: #000000;
JSON
{
  "hex": "#2872a0",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 160
  },
  "hsl": {
    "h": 203,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.52826,
    "c": 0.10175,
    "h": 240.3
  },
  "luminance": 0.15024
}

Semantic roles & 50–950 ramp

primary
#2872A0
secondary
#C08764
accent
#8145E3
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2872A0

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

Preview Lab → · Contrast checker → · Palette generator →

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