#2A87B1#2A87B1

#2A87B1 is a mid, moderate cyan. Relative luminance 0.210; OKLCH L 58.9% C 0.106 H 232.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2A87B1
RGBrgb(42, 135, 177)
HSLhsl(199, 62%, 43%)
HSVhsv(199, 76%, 69%)
CMYKcmyk(76.3%, 23.7%, 0%, 30.6%)
CIE-LABlab(52.94, -12.43, -29.79)
CIE-LCHlch(52.94, 32.28, 247.35°)
OKLaboklab(58.88% -0.0643 -0.0839)
OKLCHoklch(58.88% 0.106 232.5)
XYZxyz(17.5514, 20.9924, 44.7134)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87B1 #B1542A
analogous
#2AB198 #2A87B1 #2A43B1
triadic
#2A87B1 #B12A87 #87B12A
tetradic
#2A87B1 #982AB1 #B1542A #43B12A
square
#2A87B1 #982AB1 #B1542A #43B12A
split-complementary
#2A87B1 #B12A43 #B1982A
monochromatic
#133C4E #1E6180 #2A87B1 #45A7D3 #77BEDF

Accessibility & contrast

On white

4.04
#2A87B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#2A87B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87B1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87B1#FFFFFF#000000##000000
##2A87B11.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B3
Deuteranopia (green-blind)
#6079B0
Tritanopia (blue-blind)
#009295
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2a87b1;
/* rgb */ color: rgb(42, 135, 177);
/* oklch */ color: oklch(58.9% 0.106 232.5);
Tailwind
colors: {
  custom: {
    50: '#78aac8',
    500: '#2a87b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a87b1;
$custom-light: #78aac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87b1",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 177
  },
  "hsl": {
    "h": 198.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.58883,
    "c": 0.10566,
    "h": 232.5
  },
  "luminance": 0.20995
}

Semantic roles & 50–950 ramp

primary
#2A87B1
secondary
#C68B70
accent
#7543E5
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2A87B1

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

Preview Lab → · Contrast checker → · Palette generator →

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