#2D87B7#2D87B7

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

Color values

HEX#2D87B7
RGBrgb(45, 135, 183)
HSLhsl(201, 61%, 45%)
HSVhsv(201, 75%, 72%)
CMYKcmyk(75.4%, 26.2%, 0%, 28.2%)
CIE-LABlab(53.28, -9.95, -32.70)
CIE-LCHlch(53.28, 34.18, 253.08°)
OKLaboklab(59.26% -0.0607 -0.0923)
OKLCHoklch(59.26% 0.11 236.6)
XYZxyz(18.2900, 21.3026, 47.9384)
Luminance0.2130 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D87B7 #B75D2D
analogous
#2DB7A2 #2D87B7 #2D42B7
triadic
#2D87B7 #B72D87 #87B72D
tetradic
#2D87B7 #A22DB7 #B75D2D #42B72D
square
#2D87B7 #A22DB7 #B75D2D #42B72D
split-complementary
#2D87B7 #B72D42 #B7A22D
monochromatic
#153F55 #216386 #2D87B7 #4EA5D3 #7FBEDF

Accessibility & contrast

On white

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

On black

5.26
#2D87B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D87B7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D87B7#FFFFFF#000000##000000
##2D87B71.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7087B9
Deuteranopia (green-blind)
#5D79B6
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2d87b7;
/* rgb */ color: rgb(45, 135, 183);
/* oklch */ color: oklch(59.3% 0.110 236.6);
Tailwind
colors: {
  custom: {
    50: '#7aa9cc',
    500: '#2d87b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d87b7;
$custom-light: #7aa9cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d87b7",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 183
  },
  "hsl": {
    "h": 200.87,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5926,
    "c": 0.11046,
    "h": 236.6
  },
  "luminance": 0.21305
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D87B7

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

Preview Lab → · Contrast checker → · Palette generator →

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