#2A87B5#2A87B5

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

Color values

HEX#2A87B5
RGBrgb(42, 135, 181)
HSLhsl(200, 62%, 44%)
HSVhsv(200, 77%, 71%)
CMYKcmyk(76.8%, 25.4%, 0%, 29%)
CIE-LABlab(53.12, -11.02, -31.81)
CIE-LCHlch(53.12, 33.67, 250.89°)
OKLaboklab(59.08% -0.0628 -0.0897)
OKLCHoklch(59.08% 0.11 235)
XYZxyz(17.9560, 21.1542, 46.8439)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87B5 #B5582A
analogous
#2AB59D #2A87B5 #2A41B5
triadic
#2A87B5 #B52A87 #87B52A
tetradic
#2A87B5 #9D2AB5 #B5582A #41B52A
square
#2A87B5 #9D2AB5 #B5582A #41B52A
split-complementary
#2A87B5 #B52A41 #B59D2A
monochromatic
#133D52 #1E6283 #2A87B5 #48A6D4 #79BEE0

Accessibility & contrast

On white

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

On black

5.23
#2A87B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87B5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87B5#FFFFFF#000000##000000
##2A87B51.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7186B7
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2a87b5;
/* rgb */ color: rgb(42, 135, 181);
/* oklch */ color: oklch(59.1% 0.110 235.0);
Tailwind
colors: {
  custom: {
    50: '#78a9cb',
    500: '#2a87b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a87b5;
$custom-light: #78a9cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87b5",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 181
  },
  "hsl": {
    "h": 199.856,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.59082,
    "c": 0.10954,
    "h": 235
  },
  "luminance": 0.21156
}

Semantic roles & 50–950 ramp

primary
#2A87B5
secondary
#C88F73
accent
#7842E5
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2A87B5

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

Preview Lab → · Contrast checker → · Palette generator →

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