#2A87B8#2A87B8

#2A87B8 is a mid, moderate cyan. Relative luminance 0.213; OKLCH L 59.2% C 0.113 H 236.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2A87B8
RGBrgb(42, 135, 184)
HSLhsl(201, 63%, 44%)
HSVhsv(201, 77%, 72%)
CMYKcmyk(77.2%, 26.6%, 0%, 27.8%)
CIE-LABlab(53.25, -9.96, -33.32)
CIE-LCHlch(53.25, 34.78, 253.36°)
OKLaboklab(59.23% -0.0618 -0.0941)
OKLCHoklch(59.23% 0.113 236.7)
XYZxyz(18.2671, 21.2787, 48.4826)
Luminance0.2128 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87B8 #B85B2A
analogous
#2AB8A2 #2A87B8 #2A40B8
triadic
#2A87B8 #B82A87 #87B82A
tetradic
#2A87B8 #A22AB8 #B85B2A #40B82A
square
#2A87B8 #A22AB8 #B85B2A #40B82A
split-complementary
#2A87B8 #B82A40 #B8A22A
monochromatic
#133E54 #1F6286 #2A87B8 #4AA5D6 #7BBEE1

Accessibility & contrast

On white

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

On black

5.26
#2A87B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87B8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87B8#FFFFFF#000000##000000
##2A87B81.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F87BA
Deuteranopia (green-blind)
#5C79B7
Tritanopia (blue-blind)
#009498
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2a87b8;
/* rgb */ color: rgb(42, 135, 184);
/* oklch */ color: oklch(59.2% 0.113 236.7);
Tailwind
colors: {
  custom: {
    50: '#79a9cd',
    500: '#2a87b8',
    950: '#000000',
  },
}
SCSS
$custom: #2a87b8;
$custom-light: #79a9cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87b8",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 184
  },
  "hsl": {
    "h": 200.704,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.59234,
    "c": 0.11257,
    "h": 236.7
  },
  "luminance": 0.21281
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A87B8

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

Preview Lab → · Contrast checker → · Palette generator →

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