#2A87A8#2A87A8

#2A87A8 is a mid, moderate cyan. Relative luminance 0.206; OKLCH L 58.5% C 0.098 H 226.3°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#2A87A8
RGBrgb(42, 135, 168)
HSLhsl(196, 60%, 41%)
HSVhsv(196, 75%, 66%)
CMYKcmyk(75%, 19.6%, 0%, 34.1%)
CIE-LABlab(52.56, -15.56, -25.21)
CIE-LCHlch(52.56, 29.62, 238.31°)
OKLaboklab(58.45% -0.0676 -0.0707)
OKLCHoklch(58.45% 0.098 226.3)
XYZxyz(16.6838, 20.6454, 40.1439)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87A8 #A84B2A
analogous
#2AA88A #2A87A8 #2A48A8
triadic
#2A87A8 #A82A87 #87A82A
tetradic
#2A87A8 #8A2AA8 #A84B2A #48A82A
square
#2A87A8 #8A2AA8 #A84B2A #48A82A
split-complementary
#2A87A8 #A82A48 #A88A2A
monochromatic
#123846 #1E6077 #2A87A8 #40AACF #71C0DB

Accessibility & contrast

On white

4.09
#2A87A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#2A87A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87A8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87A8#FFFFFF#000000##000000
##2A87A81.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7584AA
Deuteranopia (green-blind)
#6478A8
Tritanopia (blue-blind)
#009192
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2a87a8;
/* rgb */ color: rgb(42, 135, 168);
/* oklch */ color: oklch(58.5% 0.098 226.3);
Tailwind
colors: {
  custom: {
    50: '#76aac2',
    500: '#2a87a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a87a8;
$custom-light: #76aac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87a8",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 168
  },
  "hsl": {
    "h": 195.714,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.58451,
    "c": 0.0978,
    "h": 226.3
  },
  "luminance": 0.20647
}

Semantic roles & 50–950 ramp

primary
#2A87A8
secondary
#C3826B
accent
#6E45E3
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2A87A8

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

Preview Lab → · Contrast checker → · Palette generator →

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