#2872AA#2872AA

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

Color values

HEX#2872AA
RGBrgb(40, 114, 170)
HSLhsl(206, 62%, 41%)
HSVhsv(206, 76%, 67%)
CMYKcmyk(76.5%, 32.9%, 0%, 33.3%)
CIE-LABlab(46.16, -2.96, -36.36)
CIE-LCHlch(46.16, 36.48, 265.35°)
OKLaboklab(53.38% -0.0472 -0.1032)
OKLCHoklch(53.38% 0.114 245.4)
XYZxyz(14.1453, 15.3864, 40.2468)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872AA #AA6028
analogous
#28AAA1 #2872AA #2831AA
triadic
#2872AA #AA2872 #72AA28
tetradic
#2872AA #A128AA #AA6028 #31AA28
square
#2872AA #A128AA #AA6028 #31AA28
split-complementary
#2872AA #AA2831 #AAA128
monochromatic
#113047 #1C5178 #2872AA #3E92D2 #6FAEDD

Accessibility & contrast

On white

5.15
#2872AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2872AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2872AA#FFFFFF#000000##FFFFFF
##2872AA1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5874AC
Deuteranopia (green-blind)
#4668A9
Tritanopia (blue-blind)
#008086
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2872aa;
/* rgb */ color: rgb(40, 114, 170);
/* oklch */ color: oklch(53.4% 0.114 245.4);
Tailwind
colors: {
  custom: {
    50: '#759ac3',
    500: '#2872aa',
    950: '#000000',
  },
}
SCSS
$custom: #2872aa;
$custom-light: #759ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#2872aa",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 170
  },
  "hsl": {
    "h": 205.846,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53379,
    "c": 0.1135,
    "h": 245.4
  },
  "luminance": 0.15388
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2872AA

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

Preview Lab → · Contrast checker → · Palette generator →

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