#2A87A4#2A87A4

#2A87A4 is a mid, moderate cyan. Relative luminance 0.205; OKLCH L 58.3% C 0.095 H 223.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2A87A4
RGBrgb(42, 135, 164)
HSLhsl(194, 59%, 40%)
HSVhsv(194, 74%, 64%)
CMYKcmyk(74.4%, 17.7%, 0%, 35.7%)
CIE-LABlab(52.40, -16.92, -23.15)
CIE-LCHlch(52.40, 28.67, 233.83°)
OKLaboklab(58.27% -0.0692 -0.0648)
OKLCHoklch(58.27% 0.095 223.1)
XYZxyz(16.3169, 20.4986, 38.2114)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87A4 #A4472A
analogous
#2AA484 #2A87A4 #2A4AA4
triadic
#2A87A4 #A42A87 #87A42A
tetradic
#2A87A4 #842AA4 #A4472A #4AA42A
square
#2A87A4 #842AA4 #A4472A #4AA42A
split-complementary
#2A87A4 #A42A4A #A4842A
monochromatic
#113743 #1E5F73 #2A87A4 #3EABCD #6EC0DA

Accessibility & contrast

On white

4.12
#2A87A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#2A87A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87A4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87A4#FFFFFF#000000##000000
##2A87A41.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A6
Deuteranopia (green-blind)
#6678A4
Tritanopia (blue-blind)
#009090
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2a87a4;
/* rgb */ color: rgb(42, 135, 164);
/* oklch */ color: oklch(58.3% 0.095 223.1);
Tailwind
colors: {
  custom: {
    50: '#76aabf',
    500: '#2a87a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a87a4;
$custom-light: #76aabf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87a4",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 164
  },
  "hsl": {
    "h": 194.262,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.58267,
    "c": 0.09476,
    "h": 223.1
  },
  "luminance": 0.20501
}

Semantic roles & 50–950 ramp

primary
#2A87A4
secondary
#C17E69
accent
#6B45E2
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2A87A4

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

Preview Lab → · Contrast checker → · Palette generator →

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