#2872A5#2872A5

#2872A5 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.1% C 0.108 H 243.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2872A5
RGBrgb(40, 114, 165)
HSLhsl(204, 61%, 40%)
HSVhsv(204, 76%, 65%)
CMYKcmyk(75.8%, 30.9%, 0%, 35.3%)
CIE-LABlab(45.91, -4.81, -33.83)
CIE-LCHlch(45.91, 34.17, 261.92°)
OKLaboklab(53.1% -0.0488 -0.0958)
OKLCHoklch(53.1% 0.108 243)
XYZxyz(13.6813, 15.2008, 37.8030)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872A5 #A55B28
analogous
#28A59A #2872A5 #2833A5
triadic
#2872A5 #A52872 #72A528
tetradic
#2872A5 #9A28A5 #A55B28 #33A528
square
#2872A5 #9A28A5 #A55B28 #33A528
split-complementary
#2872A5 #A52833 #A59A28
monochromatic
#102E42 #1C5074 #2872A5 #3B93CF #6CAEDB

Accessibility & contrast

On white

5.20
#2872A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2872A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872A5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872A5#FFFFFF#000000##FFFFFF
##2872A51.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A73A7
Deuteranopia (green-blind)
#4967A4
Tritanopia (blue-blind)
#007F84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2872a5;
/* rgb */ color: rgb(40, 114, 165);
/* oklch */ color: oklch(53.1% 0.108 243.0);
Tailwind
colors: {
  custom: {
    50: '#749ac0',
    500: '#2872a5',
    950: '#000000',
  },
}
SCSS
$custom: #2872a5;
$custom-light: #749ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2872a5",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 165
  },
  "hsl": {
    "h": 204.48,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53099,
    "c": 0.10752,
    "h": 243
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#2872A5
secondary
#C28C67
accent
#8544E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2872A5

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

Preview Lab → · Contrast checker → · Palette generator →

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