#2D87A8#2D87A8

#2D87A8 is a mid, moderate cyan. Relative luminance 0.207; OKLCH L 58.5% C 0.097 H 226.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2D87A8
RGBrgb(45, 135, 168)
HSLhsl(196, 58%, 42%)
HSVhsv(196, 73%, 66%)
CMYKcmyk(73.2%, 19.6%, 0%, 34.1%)
CIE-LABlab(52.63, -15.16, -25.09)
CIE-LCHlch(52.63, 29.31, 238.86°)
OKLaboklab(58.53% -0.0662 -0.0703)
OKLCHoklch(58.53% 0.097 226.7)
XYZxyz(16.8112, 20.7110, 40.1498)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D87A8 #A84E2D
analogous
#2DA88C #2D87A8 #2D49A8
triadic
#2D87A8 #A82D87 #87A82D
tetradic
#2D87A8 #8C2DA8 #A84E2D #49A82D
square
#2D87A8 #8C2DA8 #A84E2D #49A82D
split-complementary
#2D87A8 #A82D49 #A88C2D
monochromatic
#133947 #206078 #2D87A8 #45A9CD #75BFDA

Accessibility & contrast

On white

4.08
#2D87A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#2D87A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D87A8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D87A8#FFFFFF#000000##000000
##2D87A81.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7584AA
Deuteranopia (green-blind)
#6578A8
Tritanopia (blue-blind)
#009192
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2d87a8;
/* rgb */ color: rgb(45, 135, 168);
/* oklch */ color: oklch(58.5% 0.097 226.7);
Tailwind
colors: {
  custom: {
    50: '#77aac2',
    500: '#2d87a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d87a8;
$custom-light: #77aac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d87a8",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 168
  },
  "hsl": {
    "h": 196.098,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5853,
    "c": 0.09654,
    "h": 226.7
  },
  "luminance": 0.20713
}

Semantic roles & 50–950 ramp

primary
#2D87A8
secondary
#C2856F
accent
#7047E1
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2D87A8

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

Preview Lab → · Contrast checker → · Palette generator →

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