#2872A4#2872A4

#2872A4 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.0% C 0.106 H 242.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2872A4
RGBrgb(40, 114, 164)
HSLhsl(204, 61%, 40%)
HSVhsv(204, 76%, 64%)
CMYKcmyk(75.6%, 30.5%, 0%, 35.7%)
CIE-LABlab(45.86, -5.17, -33.32)
CIE-LCHlch(45.86, 33.72, 261.17°)
OKLaboklab(53.04% -0.0491 -0.0943)
OKLCHoklch(53.04% 0.106 242.5)
XYZxyz(13.5906, 15.1645, 37.3255)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872A4 #A45A28
analogous
#28A498 #2872A4 #2834A4
triadic
#2872A4 #A42872 #72A428
tetradic
#2872A4 #9828A4 #A45A28 #34A428
square
#2872A4 #9828A4 #A45A28 #34A428
split-complementary
#2872A4 #A42834 #A49828
monochromatic
#102E42 #1C5073 #2872A4 #3A93CF #6BAEDB

Accessibility & contrast

On white

5.21
#2872A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2872A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872A4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872A4#FFFFFF#000000##FFFFFF
##2872A41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A6
Deuteranopia (green-blind)
#4A67A3
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2872a4;
/* rgb */ color: rgb(40, 114, 164);
/* oklch */ color: oklch(53.0% 0.106 242.5);
Tailwind
colors: {
  custom: {
    50: '#749abf',
    500: '#2872a4',
    950: '#000000',
  },
}
SCSS
$custom: #2872a4;
$custom-light: #749abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2872a4",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 164
  },
  "hsl": {
    "h": 204.194,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.53044,
    "c": 0.10635,
    "h": 242.5
  },
  "luminance": 0.15166
}

Semantic roles & 50–950 ramp

primary
#2872A4
secondary
#C18B66
accent
#8444E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2872A4

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

Preview Lab → · Contrast checker → · Palette generator →

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