#2E87B7#2E87B7

#2E87B7 is a mid, moderate cyan. Relative luminance 0.213; OKLCH L 59.3% C 0.110 H 236.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2E87B7
RGBrgb(46, 135, 183)
HSLhsl(201, 60%, 45%)
HSVhsv(201, 75%, 72%)
CMYKcmyk(74.9%, 26.2%, 0%, 28.2%)
CIE-LABlab(53.30, -9.82, -32.66)
CIE-LCHlch(53.30, 34.11, 253.26°)
OKLaboklab(59.29% -0.0602 -0.0921)
OKLCHoklch(59.29% 0.11 236.8)
XYZxyz(18.3345, 21.3255, 47.9405)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E87B7 #B75E2E
analogous
#2EB7A3 #2E87B7 #2E43B7
triadic
#2E87B7 #B72E87 #87B72E
tetradic
#2E87B7 #A32EB7 #B75E2E #43B72E
square
#2E87B7 #A32EB7 #B75E2E #43B72E
split-complementary
#2E87B7 #B72E43 #B7A32E
monochromatic
#153F55 #226386 #2E87B7 #4FA5D3 #80BEDF

Accessibility & contrast

On white

3.99
#2E87B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#2E87B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2E87B7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E87B7#FFFFFF#000000##000000
##2E87B71.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7087B9
Deuteranopia (green-blind)
#5D7AB6
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2e87b7;
/* rgb */ color: rgb(46, 135, 183);
/* oklch */ color: oklch(59.3% 0.110 236.8);
Tailwind
colors: {
  custom: {
    50: '#7aa9cc',
    500: '#2e87b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e87b7;
$custom-light: #7aa9cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e87b7",
  "rgb": {
    "r": 46,
    "g": 135,
    "b": 183
  },
  "hsl": {
    "h": 201.022,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.59287,
    "c": 0.11008,
    "h": 236.8
  },
  "luminance": 0.21328
}

Semantic roles & 50–950 ramp

primary
#2E87B7
secondary
#C89579
accent
#7C45E3
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2E87B7

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

Preview Lab → · Contrast checker → · Palette generator →

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