#2A87AC#2A87AC

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

Color values

HEX#2A87AC
RGBrgb(42, 135, 172)
HSLhsl(197, 61%, 42%)
HSVhsv(197, 76%, 67%)
CMYKcmyk(75.6%, 21.5%, 0%, 32.5%)
CIE-LABlab(52.73, -14.18, -27.25)
CIE-LCHlch(52.73, 30.72, 242.51°)
OKLaboklab(58.64% -0.0661 -0.0766)
OKLCHoklch(58.64% 0.101 229.2)
XYZxyz(17.0622, 20.7967, 42.1367)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87AC #AC4F2A
analogous
#2AAC90 #2A87AC #2A46AC
triadic
#2A87AC #AC2A87 #87AC2A
tetradic
#2A87AC #902AAC #AC4F2A #46AC2A
square
#2A87AC #902AAC #AC4F2A #46AC2A
split-complementary
#2A87AC #AC2A46 #AC902A
monochromatic
#123A4A #1E607B #2A87AC #42A8D1 #73BFDD

Accessibility & contrast

On white

4.07
#2A87AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#2A87AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87AC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87AC#FFFFFF#000000##000000
##2A87AC1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a87ac;
/* rgb */ color: rgb(42, 135, 172);
/* oklch */ color: oklch(58.6% 0.101 229.2);
Tailwind
colors: {
  custom: {
    50: '#77aac5',
    500: '#2a87ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a87ac;
$custom-light: #77aac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87ac",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 172
  },
  "hsl": {
    "h": 197.077,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5864,
    "c": 0.10113,
    "h": 229.2
  },
  "luminance": 0.20799
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A87AC

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

Preview Lab → · Contrast checker → · Palette generator →

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