#2A87AB#2A87AB

#2A87AB is a mid, moderate cyan. Relative luminance 0.208; OKLCH L 58.6% C 0.100 H 228.5°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2A87AB
RGBrgb(42, 135, 171)
HSLhsl(197, 61%, 42%)
HSVhsv(197, 75%, 67%)
CMYKcmyk(75.4%, 21.1%, 0%, 32.9%)
CIE-LABlab(52.68, -14.52, -26.74)
CIE-LCHlch(52.68, 30.43, 241.49°)
OKLaboklab(58.59% -0.0665 -0.0751)
OKLCHoklch(58.59% 0.1 228.5)
XYZxyz(16.9665, 20.7585, 41.6328)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87AB #AB4E2A
analogous
#2AAB8F #2A87AB #2A47AB
triadic
#2A87AB #AB2A87 #87AB2A
tetradic
#2A87AB #8F2AAB #AB4E2A #47AB2A
square
#2A87AB #8F2AAB #AB4E2A #47AB2A
split-complementary
#2A87AB #AB2A47 #AB8F2A
monochromatic
#123949 #1E607A #2A87AB #42A9D1 #73BFDD

Accessibility & contrast

On white

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

On black

5.15
#2A87AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87AB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87AB#FFFFFF#000000##000000
##2A87AB1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a87ab;
/* rgb */ color: rgb(42, 135, 171);
/* oklch */ color: oklch(58.6% 0.100 228.5);
Tailwind
colors: {
  custom: {
    50: '#77aac4',
    500: '#2a87ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a87ab;
$custom-light: #77aac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87ab",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 171
  },
  "hsl": {
    "h": 196.744,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.58592,
    "c": 0.10028,
    "h": 228.5
  },
  "luminance": 0.2076
}

Semantic roles & 50–950 ramp

primary
#2A87AB
secondary
#C4856D
accent
#7144E4
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2A87AB

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

Preview Lab → · Contrast checker → · Palette generator →

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