#2D87A7#2D87A7

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

Color values

HEX#2D87A7
RGBrgb(45, 135, 167)
HSLhsl(196, 58%, 42%)
HSVhsv(196, 73%, 65%)
CMYKcmyk(73.1%, 19.2%, 0%, 34.5%)
CIE-LABlab(52.59, -15.50, -24.57)
CIE-LCHlch(52.59, 29.05, 237.76°)
OKLaboklab(58.48% -0.0665 -0.0688)
OKLCHoklch(58.48% 0.096 226)
XYZxyz(16.7184, 20.6739, 39.6611)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D87A7 #A74D2D
analogous
#2DA78A #2D87A7 #2D4AA7
triadic
#2D87A7 #A72D87 #87A72D
tetradic
#2D87A7 #8A2DA7 #A74D2D #4AA72D
square
#2D87A7 #8A2DA7 #A74D2D #4AA72D
split-complementary
#2D87A7 #A72D4A #A78A2D
monochromatic
#133947 #206077 #2D87A7 #44A9CD #75BFDA

Accessibility & contrast

On white

4.09
#2D87A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D87A7#FFFFFF#000000##000000
##2D87A71.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A9
Deuteranopia (green-blind)
#6578A7
Tritanopia (blue-blind)
#009091
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2d87a7;
/* rgb */ color: rgb(45, 135, 167);
/* oklch */ color: oklch(58.5% 0.096 226.0);
Tailwind
colors: {
  custom: {
    50: '#77aac1',
    500: '#2d87a7',
    950: '#000000',
  },
}
SCSS
$custom: #2d87a7;
$custom-light: #77aac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d87a7",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 167
  },
  "hsl": {
    "h": 195.738,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.58484,
    "c": 0.09574,
    "h": 226
  },
  "luminance": 0.20676
}

Semantic roles & 50–950 ramp

primary
#2D87A7
secondary
#C1846E
accent
#6F47E1
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2D87A7

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

Preview Lab → · Contrast checker → · Palette generator →

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