#2872A3#2872A3

#2872A3 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.0% C 0.105 H 242.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2872A3
RGBrgb(40, 114, 163)
HSLhsl(204, 61%, 40%)
HSVhsv(204, 75%, 64%)
CMYKcmyk(75.5%, 30.1%, 0%, 36.1%)
CIE-LABlab(45.81, -5.54, -32.81)
CIE-LCHlch(45.81, 33.27, 260.42°)
OKLaboklab(52.99% -0.0494 -0.0928)
OKLCHoklch(52.99% 0.105 242)
XYZxyz(13.5007, 15.1285, 36.8518)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872A3 #A35928
analogous
#28A396 #2872A3 #2835A3
triadic
#2872A3 #A32872 #72A328
tetradic
#2872A3 #9628A3 #A35928 #35A328
square
#2872A3 #9628A3 #A35928 #35A328
split-complementary
#2872A3 #A32835 #A39628
monochromatic
#102D41 #1C5072 #2872A3 #3A93CF #6BAEDB

Accessibility & contrast

On white

5.22
#2872A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2872A3
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872A3#FFFFFF#000000##FFFFFF
##2872A31.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A5
Deuteranopia (green-blind)
#4A67A2
Tritanopia (blue-blind)
#007E83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2872a3;
/* rgb */ color: rgb(40, 114, 163);
/* oklch */ color: oklch(53.0% 0.105 242.0);
Tailwind
colors: {
  custom: {
    50: '#739abe',
    500: '#2872a3',
    950: '#000000',
  },
}
SCSS
$custom: #2872a3;
$custom-light: #739abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2872a3",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 163
  },
  "hsl": {
    "h": 203.902,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52989,
    "c": 0.10519,
    "h": 242
  },
  "luminance": 0.1513
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2872A3

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

Preview Lab → · Contrast checker → · Palette generator →

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