#2887B1#2887B1

#2887B1 is a mid, moderate cyan. Relative luminance 0.210; OKLCH L 58.8% C 0.106 H 232.2°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2887B1
RGBrgb(40, 135, 177)
HSLhsl(198, 63%, 43%)
HSVhsv(198, 77%, 69%)
CMYKcmyk(77.4%, 23.7%, 0%, 30.6%)
CIE-LABlab(52.90, -12.67, -29.87)
CIE-LCHlch(52.90, 32.44, 247.01°)
OKLaboklab(58.83% -0.0652 -0.0841)
OKLCHoklch(58.83% 0.106 232.2)
XYZxyz(17.4716, 20.9513, 44.7096)
Luminance0.2095 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2887B1 #B15228
analogous
#28B196 #2887B1 #2843B1
triadic
#2887B1 #B12887 #87B128
tetradic
#2887B1 #9628B1 #B15228 #43B128
square
#2887B1 #9628B1 #B15228 #43B128
split-complementary
#2887B1 #B12843 #B19628
monochromatic
#113B4D #1D617F #2887B1 #42A7D4 #74BFE0

Accessibility & contrast

On white

4.05
#2887B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#2887B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2887B1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2887B1#FFFFFF#000000##000000
##2887B11.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B3
Deuteranopia (green-blind)
#6079B0
Tritanopia (blue-blind)
#009295
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2887b1;
/* rgb */ color: rgb(40, 135, 177);
/* oklch */ color: oklch(58.8% 0.106 232.2);
Tailwind
colors: {
  custom: {
    50: '#77aac8',
    500: '#2887b1',
    950: '#000000',
  },
}
SCSS
$custom: #2887b1;
$custom-light: #77aac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2887b1",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 177
  },
  "hsl": {
    "h": 198.394,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.58834,
    "c": 0.1064,
    "h": 232.2
  },
  "luminance": 0.20953
}

Semantic roles & 50–950 ramp

primary
#2887B1
secondary
#C7896E
accent
#7442E6
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2887B1

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

Preview Lab → · Contrast checker → · Palette generator →

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