#2A87AD#2A87AD

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

Color values

HEX#2A87AD
RGBrgb(42, 135, 173)
HSLhsl(197, 61%, 42%)
HSVhsv(197, 76%, 68%)
CMYKcmyk(75.7%, 22%, 0%, 32.2%)
CIE-LABlab(52.77, -13.83, -27.76)
CIE-LCHlch(52.77, 31.02, 243.52°)
OKLaboklab(58.69% -0.0657 -0.078)
OKLCHoklch(58.69% 0.102 229.9)
XYZxyz(17.1586, 20.8353, 42.6444)
Luminance0.2084 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87AD #AD502A
analogous
#2AAD92 #2A87AD #2A45AD
triadic
#2A87AD #AD2A87 #87AD2A
tetradic
#2A87AD #922AAD #AD502A #45AD2A
square
#2A87AD #922AAD #AD502A #45AD2A
split-complementary
#2A87AD #AD2A45 #AD922A
monochromatic
#123A4B #1E617C #2A87AD #43A8D1 #74BFDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A87AD#FFFFFF#000000##000000
##2A87AD1.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)
#7385AF
Deuteranopia (green-blind)
#6278AC
Tritanopia (blue-blind)
#009294
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2a87ad;
/* rgb */ color: rgb(42, 135, 173);
/* oklch */ color: oklch(58.7% 0.102 229.9);
Tailwind
colors: {
  custom: {
    50: '#77aac5',
    500: '#2a87ad',
    950: '#000000',
  },
}
SCSS
$custom: #2a87ad;
$custom-light: #77aac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87ad",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 173
  },
  "hsl": {
    "h": 197.405,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.58688,
    "c": 0.10201,
    "h": 229.9
  },
  "luminance": 0.20837
}

Semantic roles & 50–950 ramp

primary
#2A87AD
secondary
#C5876E
accent
#7244E4
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2A87AD

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

Preview Lab → · Contrast checker → · Palette generator →

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