#2872A2#2872A2

#2872A2 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 52.9% C 0.104 H 241.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2872A2
RGBrgb(40, 114, 162)
HSLhsl(204, 60%, 40%)
HSVhsv(204, 75%, 64%)
CMYKcmyk(75.3%, 29.6%, 0%, 36.5%)
CIE-LABlab(45.76, -5.91, -32.30)
CIE-LCHlch(45.76, 32.83, 259.64°)
OKLaboklab(52.93% -0.0498 -0.0914)
OKLCHoklch(52.93% 0.104 241.4)
XYZxyz(13.4114, 15.0928, 36.3818)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872A2 #A25828
analogous
#28A295 #2872A2 #2835A2
triadic
#2872A2 #A22872 #72A228
tetradic
#2872A2 #9528A2 #A25828 #35A228
square
#2872A2 #9528A2 #A25828 #35A228
split-complementary
#2872A2 #A22835 #A29528
monochromatic
#102D40 #1C4F71 #2872A2 #3993CE #6AAEDA

Accessibility & contrast

On white

5.23
#2872A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2872A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872A2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872A2#FFFFFF#000000##FFFFFF
##2872A21.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2872a2;
/* rgb */ color: rgb(40, 114, 162);
/* oklch */ color: oklch(52.9% 0.104 241.4);
Tailwind
colors: {
  custom: {
    50: '#739abd',
    500: '#2872a2',
    950: '#000000',
  },
}
SCSS
$custom: #2872a2;
$custom-light: #739abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2872a2",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 162
  },
  "hsl": {
    "h": 203.607,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52934,
    "c": 0.10403,
    "h": 241.4
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#2872A2
secondary
#C18965
accent
#8344E4
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2872A2

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

Preview Lab → · Contrast checker → · Palette generator →

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