#2D87B8#2D87B8

#2D87B8 is a mid, moderate cyan. Relative luminance 0.213; OKLCH L 59.3% C 0.111 H 237.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2D87B8
RGBrgb(45, 135, 184)
HSLhsl(201, 61%, 45%)
HSVhsv(201, 76%, 72%)
CMYKcmyk(75.5%, 26.6%, 0%, 27.8%)
CIE-LABlab(53.32, -9.60, -33.20)
CIE-LCHlch(53.32, 34.56, 253.88°)
OKLaboklab(59.31% -0.0604 -0.0937)
OKLCHoklch(59.31% 0.111 237.2)
XYZxyz(18.3945, 21.3444, 48.4885)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D87B8 #B85E2D
analogous
#2DB8A4 #2D87B8 #2D41B8
triadic
#2D87B8 #B82D87 #87B82D
tetradic
#2D87B8 #A42DB8 #B85E2D #41B82D
square
#2D87B8 #A42DB8 #B85E2D #41B82D
split-complementary
#2D87B8 #B82D41 #B8A42D
monochromatic
#153F56 #216387 #2D87B8 #4EA5D4 #80BEE0

Accessibility & contrast

On white

3.99
#2D87B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#2D87B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D87B8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D87B8#FFFFFF#000000##000000
##2D87B81.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7087BA
Deuteranopia (green-blind)
#5D7AB7
Tritanopia (blue-blind)
#009498
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2d87b8;
/* rgb */ color: rgb(45, 135, 184);
/* oklch */ color: oklch(59.3% 0.111 237.2);
Tailwind
colors: {
  custom: {
    50: '#7aa9cd',
    500: '#2d87b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d87b8;
$custom-light: #7aa9cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d87b8",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 184
  },
  "hsl": {
    "h": 201.151,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.59311,
    "c": 0.11149,
    "h": 237.2
  },
  "luminance": 0.21347
}

Semantic roles & 50–950 ramp

primary
#2D87B8
secondary
#C99578
accent
#7C44E4
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2D87B8

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

Preview Lab → · Contrast checker → · Palette generator →

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