#2887AC#2887AC

#2887AC is a mid, moderate cyan. Relative luminance 0.208; OKLCH L 58.6% C 0.102 H 228.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2887AC
RGBrgb(40, 135, 172)
HSLhsl(197, 62%, 42%)
HSVhsv(197, 77%, 67%)
CMYKcmyk(76.7%, 21.5%, 0%, 32.5%)
CIE-LABlab(52.68, -14.42, -27.33)
CIE-LCHlch(52.68, 30.90, 242.17°)
OKLaboklab(58.59% -0.067 -0.0768)
OKLCHoklch(58.59% 0.102 228.9)
XYZxyz(16.9824, 20.7556, 42.1329)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2887AC #AC4D28
analogous
#28AC8F #2887AC #2845AC
triadic
#2887AC #AC2887 #87AC28
tetradic
#2887AC #8F28AC #AC4D28 #45AC28
square
#2887AC #8F28AC #AC4D28 #45AC28
split-complementary
#2887AC #AC2845 #AC8F28
monochromatic
#113949 #1C607A #2887AC #3FA9D2 #71BFDE

Accessibility & contrast

On white

4.08
#2887AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#2887AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2887AC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2887AC#FFFFFF#000000##000000
##2887AC1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7485AE
Deuteranopia (green-blind)
#6278AB
Tritanopia (blue-blind)
#009193
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2887ac;
/* rgb */ color: rgb(40, 135, 172);
/* oklch */ color: oklch(58.6% 0.102 228.9);
Tailwind
colors: {
  custom: {
    50: '#76aac5',
    500: '#2887ac',
    950: '#000000',
  },
}
SCSS
$custom: #2887ac;
$custom-light: #76aac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2887ac",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 172
  },
  "hsl": {
    "h": 196.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.58591,
    "c": 0.1019,
    "h": 228.9
  },
  "luminance": 0.20758
}

Semantic roles & 50–950 ramp

primary
#2887AC
secondary
#C5846B
accent
#7042E5
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2887AC

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

Preview Lab → · Contrast checker → · Palette generator →

#2887AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva