#2A87B7#2A87B7

#2A87B7 is a mid, moderate cyan. Relative luminance 0.212; OKLCH L 59.2% C 0.112 H 236.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2A87B7
RGBrgb(42, 135, 183)
HSLhsl(200, 63%, 44%)
HSVhsv(200, 77%, 72%)
CMYKcmyk(77%, 26.2%, 0%, 28.2%)
CIE-LABlab(53.21, -10.32, -32.82)
CIE-LCHlch(53.21, 34.40, 252.55°)
OKLaboklab(59.18% -0.0622 -0.0926)
OKLCHoklch(59.18% 0.112 236.1)
XYZxyz(18.1627, 21.2369, 47.9325)
Luminance0.2124 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87B7 #B75A2A
analogous
#2AB7A1 #2A87B7 #2A40B7
triadic
#2A87B7 #B72A87 #87B72A
tetradic
#2A87B7 #A12AB7 #B75A2A #40B72A
square
#2A87B7 #A12AB7 #B75A2A #40B72A
split-complementary
#2A87B7 #B72A40 #B7A12A
monochromatic
#133E53 #1F6285 #2A87B7 #49A5D5 #7BBEE1

Accessibility & contrast

On white

4.00
#2A87B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#2A87B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87B7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87B7#FFFFFF#000000##000000
##2A87B71.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7086B9
Deuteranopia (green-blind)
#5D79B6
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2a87b7;
/* rgb */ color: rgb(42, 135, 183);
/* oklch */ color: oklch(59.2% 0.112 236.1);
Tailwind
colors: {
  custom: {
    50: '#79a9cd',
    500: '#2a87b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a87b7;
$custom-light: #79a9cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87b7",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 183
  },
  "hsl": {
    "h": 200.426,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.59183,
    "c": 0.11155,
    "h": 236.1
  },
  "luminance": 0.21239
}

Semantic roles & 50–950 ramp

primary
#2A87B7
secondary
#C99174
accent
#7A42E6
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2A87B7

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

Preview Lab → · Contrast checker → · Palette generator →

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