#2A87A7#2A87A7

#2A87A7 is a mid, moderate cyan. Relative luminance 0.206; OKLCH L 58.4% C 0.097 H 225.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2A87A7
RGBrgb(42, 135, 167)
HSLhsl(195, 60%, 41%)
HSVhsv(195, 75%, 65%)
CMYKcmyk(74.9%, 19.2%, 0%, 34.5%)
CIE-LABlab(52.52, -15.90, -24.69)
CIE-LCHlch(52.52, 29.37, 237.22°)
OKLaboklab(58.4% -0.068 -0.0692)
OKLCHoklch(58.4% 0.097 225.5)
XYZxyz(16.5910, 20.6083, 39.6551)
Luminance0.2061 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87A7 #A74A2A
analogous
#2AA788 #2A87A7 #2A48A7
triadic
#2A87A7 #A72A87 #87A72A
tetradic
#2A87A7 #882AA7 #A74A2A #48A72A
square
#2A87A7 #882AA7 #A74A2A #48A72A
split-complementary
#2A87A7 #A72A48 #A7882A
monochromatic
#113845 #1E5F76 #2A87A7 #3FAACF #70C0DB

Accessibility & contrast

On white

4.10
#2A87A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#2A87A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87A7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87A7#FFFFFF#000000##000000
##2A87A71.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7584A9
Deuteranopia (green-blind)
#6578A7
Tritanopia (blue-blind)
#009091
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2a87a7;
/* rgb */ color: rgb(42, 135, 167);
/* oklch */ color: oklch(58.4% 0.097 225.5);
Tailwind
colors: {
  custom: {
    50: '#76aac1',
    500: '#2a87a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a87a7;
$custom-light: #76aac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87a7",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 167
  },
  "hsl": {
    "h": 195.36,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.58405,
    "c": 0.09701,
    "h": 225.5
  },
  "luminance": 0.2061
}

Semantic roles & 50–950 ramp

primary
#2A87A7
secondary
#C2816B
accent
#6D45E3
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2A87A7

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

Preview Lab → · Contrast checker → · Palette generator →

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