#2D87AC#2D87AC

#2D87AC is a mid, moderate cyan. Relative luminance 0.209; OKLCH L 58.7% C 0.100 H 229.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2D87AC
RGBrgb(45, 135, 172)
HSLhsl(197, 59%, 43%)
HSVhsv(197, 74%, 67%)
CMYKcmyk(73.8%, 21.5%, 0%, 32.5%)
CIE-LABlab(52.80, -13.79, -27.13)
CIE-LCHlch(52.80, 30.44, 243.06°)
OKLaboklab(58.72% -0.0646 -0.0762)
OKLCHoklch(58.72% 0.1 229.7)
XYZxyz(17.1895, 20.8624, 42.1426)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D87AC #AC522D
analogous
#2DAC91 #2D87AC #2D48AC
triadic
#2D87AC #AC2D87 #87AC2D
tetradic
#2D87AC #912DAC #AC522D #48AC2D
square
#2D87AC #912DAC #AC522D #48AC2D
split-complementary
#2D87AC #AC2D48 #AC912D
monochromatic
#143B4B #20617B #2D87AC #47A7CF #78BFDC

Accessibility & contrast

On white

4.06
#2D87AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#2D87AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D87AC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D87AC#FFFFFF#000000##000000
##2D87AC1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7485AE
Deuteranopia (green-blind)
#6379AB
Tritanopia (blue-blind)
#009193
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2d87ac;
/* rgb */ color: rgb(45, 135, 172);
/* oklch */ color: oklch(58.7% 0.100 229.7);
Tailwind
colors: {
  custom: {
    50: '#78aac5',
    500: '#2d87ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d87ac;
$custom-light: #78aac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d87ac",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 172
  },
  "hsl": {
    "h": 197.48,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.58718,
    "c": 0.09992,
    "h": 229.7
  },
  "luminance": 0.20864
}

Semantic roles & 50–950 ramp

primary
#2D87AC
secondary
#C48971
accent
#7346E2
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2D87AC

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

Preview Lab → · Contrast checker → · Palette generator →

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