#2887AF#2887AF

#2887AF is a mid, moderate cyan. Relative luminance 0.209; OKLCH L 58.7% C 0.105 H 230.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2887AF
RGBrgb(40, 135, 175)
HSLhsl(198, 63%, 42%)
HSVhsv(198, 77%, 69%)
CMYKcmyk(77.1%, 22.9%, 0%, 31.4%)
CIE-LABlab(52.81, -13.37, -28.85)
CIE-LCHlch(52.81, 31.80, 245.13°)
OKLaboklab(58.74% -0.0659 -0.0812)
OKLCHoklch(58.74% 0.105 230.9)
XYZxyz(17.2738, 20.8721, 43.6675)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2887AF #AF5028
analogous
#28AF94 #2887AF #2843AF
triadic
#2887AF #AF2887 #87AF28
tetradic
#2887AF #9428AF #AF5028 #43AF28
square
#2887AF #9428AF #AF5028 #43AF28
split-complementary
#2887AF #AF2843 #AF9428
monochromatic
#113A4B #1D617D #2887AF #41A8D4 #73BFDF

Accessibility & contrast

On white

4.06
#2887AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#2887AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2887AF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2887AF#FFFFFF#000000##000000
##2887AF1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7385B1
Deuteranopia (green-blind)
#6178AE
Tritanopia (blue-blind)
#009294
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2887af;
/* rgb */ color: rgb(40, 135, 175);
/* oklch */ color: oklch(58.7% 0.105 230.9);
Tailwind
colors: {
  custom: {
    50: '#77aac7',
    500: '#2887af',
    950: '#000000',
  },
}
SCSS
$custom: #2887af;
$custom-light: #77aac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2887af",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 175
  },
  "hsl": {
    "h": 197.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.58736,
    "c": 0.10455,
    "h": 230.9
  },
  "luminance": 0.20874
}

Semantic roles & 50–950 ramp

primary
#2887AF
secondary
#C6876D
accent
#7342E6
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2887AF

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

Preview Lab → · Contrast checker → · Palette generator →

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