#2E87A8#2E87A8

#2E87A8 is a mid, moderate cyan. Relative luminance 0.207; OKLCH L 58.6% C 0.096 H 226.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2E87A8
RGBrgb(46, 135, 168)
HSLhsl(196, 57%, 42%)
HSVhsv(196, 73%, 66%)
CMYKcmyk(72.6%, 19.6%, 0%, 34.1%)
CIE-LABlab(52.66, -15.02, -25.05)
CIE-LCHlch(52.66, 29.21, 239.05°)
OKLaboklab(58.56% -0.0657 -0.0702)
OKLCHoklch(58.56% 0.096 226.9)
XYZxyz(16.8557, 20.7340, 40.1519)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E87A8 #A84F2E
analogous
#2EA88C #2E87A8 #2E4AA8
triadic
#2E87A8 #A82E87 #87A82E
tetradic
#2E87A8 #8C2EA8 #A84F2E #4AA82E
square
#2E87A8 #8C2EA8 #A84F2E #4AA82E
split-complementary
#2E87A8 #A82E4A #A88C2E
monochromatic
#143A48 #216078 #2E87A8 #47A8CD #77BFDA

Accessibility & contrast

On white

4.08
#2E87A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#2E87A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2E87A8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E87A8#FFFFFF#000000##000000
##2E87A81.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e87a8;
/* rgb */ color: rgb(46, 135, 168);
/* oklch */ color: oklch(58.6% 0.096 226.9);
Tailwind
colors: {
  custom: {
    50: '#77aac2',
    500: '#2e87a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e87a8;
$custom-light: #77aac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e87a8",
  "rgb": {
    "r": 46,
    "g": 135,
    "b": 168
  },
  "hsl": {
    "h": 196.23,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.58558,
    "c": 0.09611,
    "h": 226.9
  },
  "luminance": 0.20736
}

Semantic roles & 50–950 ramp

primary
#2E87A8
secondary
#C28670
accent
#7148E0
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2E87A8

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

Preview Lab → · Contrast checker → · Palette generator →

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