#2872A8#2872A8

#2872A8 is a mid, moderate cyan. Relative luminance 0.153; OKLCH L 53.3% C 0.111 H 244.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2872A8
RGBrgb(40, 114, 168)
HSLhsl(205, 62%, 41%)
HSVhsv(205, 76%, 66%)
CMYKcmyk(76.2%, 32.1%, 0%, 34.1%)
CIE-LABlab(46.06, -3.70, -35.35)
CIE-LCHlch(46.06, 35.55, 264.03°)
OKLaboklab(53.27% -0.0478 -0.1003)
OKLCHoklch(53.27% 0.111 244.5)
XYZxyz(13.9575, 15.3113, 39.2580)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872A8 #A85E28
analogous
#28A89E #2872A8 #2832A8
triadic
#2872A8 #A82872 #72A828
tetradic
#2872A8 #9E28A8 #A85E28 #32A828
square
#2872A8 #9E28A8 #A85E28 #32A828
split-complementary
#2872A8 #A82832 #A89E28
monochromatic
#102F45 #1C5077 #2872A8 #3D92D1 #6EAEDC

Accessibility & contrast

On white

5.17
#2872A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2872A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872A8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872A8#FFFFFF#000000##FFFFFF
##2872A81.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5974AA
Deuteranopia (green-blind)
#4768A7
Tritanopia (blue-blind)
#007F85
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2872a8;
/* rgb */ color: rgb(40, 114, 168);
/* oklch */ color: oklch(53.3% 0.111 244.5);
Tailwind
colors: {
  custom: {
    50: '#749ac2',
    500: '#2872a8',
    950: '#000000',
  },
}
SCSS
$custom: #2872a8;
$custom-light: #749ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2872a8",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 168
  },
  "hsl": {
    "h": 205.313,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53266,
    "c": 0.11108,
    "h": 244.5
  },
  "luminance": 0.15313
}

Semantic roles & 50–950 ramp

primary
#2872A8
secondary
#C38F69
accent
#8743E5
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2872A8

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

Preview Lab → · Contrast checker → · Palette generator →

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