#2A87B3#2A87B3

#2A87B3 is a mid, moderate cyan. Relative luminance 0.211; OKLCH L 59.0% C 0.108 H 233.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2A87B3
RGBrgb(42, 135, 179)
HSLhsl(199, 62%, 43%)
HSVhsv(199, 77%, 70%)
CMYKcmyk(76.5%, 24.6%, 0%, 29.8%)
CIE-LABlab(53.03, -11.73, -30.81)
CIE-LCHlch(53.03, 32.96, 249.15°)
OKLaboklab(58.98% -0.0636 -0.0868)
OKLCHoklch(58.98% 0.108 233.8)
XYZxyz(17.7522, 21.0727, 45.7709)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87B3 #B3562A
analogous
#2AB39A #2A87B3 #2A42B3
triadic
#2A87B3 #B32A87 #87B32A
tetradic
#2A87B3 #9A2AB3 #B3562A #42B32A
square
#2A87B3 #9A2AB3 #B3562A #42B32A
split-complementary
#2A87B3 #B32A42 #B39A2A
monochromatic
#133C50 #1E6281 #2A87B3 #46A6D4 #78BEDF

Accessibility & contrast

On white

4.03
#2A87B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#2A87B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87B3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87B3#FFFFFF#000000##000000
##2A87B31.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7186B5
Deuteranopia (green-blind)
#5F79B2
Tritanopia (blue-blind)
#009396
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2a87b3;
/* rgb */ color: rgb(42, 135, 179);
/* oklch */ color: oklch(59.0% 0.108 233.8);
Tailwind
colors: {
  custom: {
    50: '#78aaca',
    500: '#2a87b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a87b3;
$custom-light: #78aaca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87b3",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 179
  },
  "hsl": {
    "h": 199.27,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.10757,
    "h": 233.8
  },
  "luminance": 0.21075
}

Semantic roles & 50–950 ramp

primary
#2A87B3
secondary
#C78D72
accent
#7743E5
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2A87B3

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

Preview Lab → · Contrast checker → · Palette generator →

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