#2872AB#2872AB

#2872AB is a mid, moderate cyan. Relative luminance 0.154; OKLCH L 53.4% C 0.115 H 245.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2872AB
RGBrgb(40, 114, 171)
HSLhsl(206, 62%, 41%)
HSVhsv(206, 77%, 67%)
CMYKcmyk(76.6%, 33.3%, 0%, 32.9%)
CIE-LABlab(46.21, -2.59, -36.87)
CIE-LCHlch(46.21, 36.96, 265.99°)
OKLaboklab(53.44% -0.0469 -0.1047)
OKLCHoklch(53.44% 0.115 245.8)
XYZxyz(14.2402, 15.4244, 40.7469)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872AB #AB6128
analogous
#28ABA3 #2872AB #2831AB
triadic
#2872AB #AB2872 #72AB28
tetradic
#2872AB #A328AB #AB6128 #31AB28
square
#2872AB #A328AB #AB6128 #31AB28
split-complementary
#2872AB #AB2831 #ABA328
monochromatic
#113048 #1C5179 #2872AB #3E92D2 #70AEDE

Accessibility & contrast

On white

5.14
#2872AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#2872AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872AB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872AB#FFFFFF#000000##FFFFFF
##2872AB1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5874AD
Deuteranopia (green-blind)
#4568AA
Tritanopia (blue-blind)
#008086
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2872ab;
/* rgb */ color: rgb(40, 114, 171);
/* oklch */ color: oklch(53.4% 0.115 245.8);
Tailwind
colors: {
  custom: {
    50: '#759ac4',
    500: '#2872ab',
    950: '#000000',
  },
}
SCSS
$custom: #2872ab;
$custom-light: #759ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2872ab",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 171
  },
  "hsl": {
    "h": 206.107,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53436,
    "c": 0.11472,
    "h": 245.8
  },
  "luminance": 0.15426
}

Semantic roles & 50–950 ramp

primary
#2872AB
secondary
#C4926A
accent
#8943E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2872AB

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

Preview Lab → · Contrast checker → · Palette generator →

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