#2887A2#2887A2

#2887A2 is a mid, moderate cyan. Relative luminance 0.204; OKLCH L 58.1% C 0.094 H 221.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2887A2
RGBrgb(40, 135, 162)
HSLhsl(193, 60%, 40%)
HSVhsv(193, 75%, 64%)
CMYKcmyk(75.3%, 16.7%, 0%, 36.5%)
CIE-LABlab(52.27, -17.86, -22.19)
CIE-LCHlch(52.27, 28.48, 231.17°)
OKLaboklab(58.13% -0.0709 -0.0621)
OKLCHoklch(58.13% 0.094 221.2)
XYZxyz(16.0579, 20.3858, 37.2640)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2887A2 #A24328
analogous
#28A280 #2887A2 #284AA2
triadic
#2887A2 #A22887 #87A228
tetradic
#2887A2 #8028A2 #A24328 #4AA228
square
#2887A2 #8028A2 #A24328 #4AA228
split-complementary
#2887A2 #A2284A #A28028
monochromatic
#103540 #1C5E71 #2887A2 #39ADCE #6AC1DA

Accessibility & contrast

On white

4.14
#2887A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#2887A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2887A2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2887A2#FFFFFF#000000##000000
##2887A21.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7783A3
Deuteranopia (green-blind)
#6677A2
Tritanopia (blue-blind)
#009090
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2887a2;
/* rgb */ color: rgb(40, 135, 162);
/* oklch */ color: oklch(58.1% 0.094 221.2);
Tailwind
colors: {
  custom: {
    50: '#75aabd',
    500: '#2887a2',
    950: '#000000',
  },
}
SCSS
$custom: #2887a2;
$custom-light: #75aabd;
$custom-dark: #000000;
JSON
{
  "hex": "#2887a2",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 162
  },
  "hsl": {
    "h": 193.279,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.58127,
    "c": 0.09419,
    "h": 221.2
  },
  "luminance": 0.20388
}

Semantic roles & 50–950 ramp

primary
#2887A2
secondary
#C17965
accent
#6844E4
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#091012
muted
#7B7F81

Preview Lab

Preview with #2887A2

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

Preview Lab → · Contrast checker → · Palette generator →

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