#2A87B6#2A87B6

#2A87B6 is a mid, moderate cyan. Relative luminance 0.212; OKLCH L 59.1% C 0.111 H 235.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2A87B6
RGBrgb(42, 135, 182)
HSLhsl(200, 63%, 44%)
HSVhsv(200, 77%, 71%)
CMYKcmyk(76.9%, 25.8%, 0%, 28.6%)
CIE-LABlab(53.16, -10.67, -32.32)
CIE-LCHlch(53.16, 34.03, 251.73°)
OKLaboklab(59.13% -0.0625 -0.0912)
OKLCHoklch(59.13% 0.111 235.6)
XYZxyz(18.0589, 21.1954, 47.3862)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87B6 #B6592A
analogous
#2AB69F #2A87B6 #2A41B6
triadic
#2A87B6 #B62A87 #87B62A
tetradic
#2A87B6 #9F2AB6 #B6592A #41B62A
square
#2A87B6 #9F2AB6 #B6592A #41B62A
split-complementary
#2A87B6 #B62A41 #B69F2A
monochromatic
#133D53 #1F6284 #2A87B6 #48A6D5 #7ABEE0

Accessibility & contrast

On white

4.01
#2A87B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#2A87B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87B6
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87B6#FFFFFF#000000##000000
##2A87B61.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a87b6;
/* rgb */ color: rgb(42, 135, 182);
/* oklch */ color: oklch(59.1% 0.111 235.6);
Tailwind
colors: {
  custom: {
    50: '#78a9cc',
    500: '#2a87b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a87b6;
$custom-light: #78a9cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87b6",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 182
  },
  "hsl": {
    "h": 200.143,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.59132,
    "c": 0.11053,
    "h": 235.6
  },
  "luminance": 0.21198
}

Semantic roles & 50–950 ramp

primary
#2A87B6
secondary
#C89073
accent
#7942E6
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2A87B6

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

Preview Lab → · Contrast checker → · Palette generator →

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