#2D87B6#2D87B6

#2D87B6 is a mid, moderate cyan. Relative luminance 0.213; OKLCH L 59.2% C 0.109 H 236.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2D87B6
RGBrgb(45, 135, 182)
HSLhsl(201, 60%, 45%)
HSVhsv(201, 75%, 71%)
CMYKcmyk(75.3%, 25.8%, 0%, 28.6%)
CIE-LABlab(53.23, -10.30, -32.20)
CIE-LCHlch(53.23, 33.81, 252.26°)
OKLaboklab(59.21% -0.0611 -0.0908)
OKLCHoklch(59.21% 0.109 236.1)
XYZxyz(18.1863, 21.2611, 47.3922)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D87B6 #B65C2D
analogous
#2DB6A1 #2D87B6 #2D43B6
triadic
#2D87B6 #B62D87 #87B62D
tetradic
#2D87B6 #A12DB6 #B65C2D #43B62D
square
#2D87B6 #A12DB6 #B65C2D #43B62D
split-complementary
#2D87B6 #B62D43 #B6A12D
monochromatic
#153E54 #216385 #2D87B6 #4DA5D3 #7EBEDF

Accessibility & contrast

On white

4.00
#2D87B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#2D87B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D87B6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D87B6#FFFFFF#000000##000000
##2D87B61.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7086B8
Deuteranopia (green-blind)
#5E79B5
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2d87b6;
/* rgb */ color: rgb(45, 135, 182);
/* oklch */ color: oklch(59.2% 0.109 236.1);
Tailwind
colors: {
  custom: {
    50: '#79a9cc',
    500: '#2d87b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d87b6;
$custom-light: #79a9cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d87b6",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 182
  },
  "hsl": {
    "h": 200.584,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.59209,
    "c": 0.10943,
    "h": 236.1
  },
  "luminance": 0.21263
}

Semantic roles & 50–950 ramp

primary
#2D87B6
secondary
#C89377
accent
#7B44E3
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2D87B6

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

Preview Lab → · Contrast checker → · Palette generator →

#2D87B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva