#2E87B5#2E87B5

#2E87B5 is a mid, moderate cyan. Relative luminance 0.212; OKLCH L 59.2% C 0.108 H 235.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2E87B5
RGBrgb(46, 135, 181)
HSLhsl(200, 59%, 45%)
HSVhsv(200, 75%, 71%)
CMYKcmyk(74.6%, 25.4%, 0%, 29%)
CIE-LABlab(53.21, -10.53, -31.66)
CIE-LCHlch(53.21, 33.36, 251.61°)
OKLaboklab(59.19% -0.0609 -0.0892)
OKLCHoklch(59.19% 0.108 235.7)
XYZxyz(18.1279, 21.2429, 46.8520)
Luminance0.2124 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E87B5 #B55C2E
analogous
#2EB59F #2E87B5 #2E44B5
triadic
#2E87B5 #B52E87 #87B52E
tetradic
#2E87B5 #9F2EB5 #B55C2E #44B52E
square
#2E87B5 #9F2EB5 #B55C2E #44B52E
split-complementary
#2E87B5 #B52E44 #B59F2E
monochromatic
#153E53 #226384 #2E87B5 #4EA5D2 #7FBEDE

Accessibility & contrast

On white

4.00
#2E87B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#2E87B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2E87B5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E87B5#FFFFFF#000000##000000
##2E87B51.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7186B7
Deuteranopia (green-blind)
#5F79B4
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2e87b5;
/* rgb */ color: rgb(46, 135, 181);
/* oklch */ color: oklch(59.2% 0.108 235.7);
Tailwind
colors: {
  custom: {
    50: '#7aa9cb',
    500: '#2e87b5',
    950: '#000000',
  },
}
SCSS
$custom: #2e87b5;
$custom-light: #7aa9cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e87b5",
  "rgb": {
    "r": 46,
    "g": 135,
    "b": 181
  },
  "hsl": {
    "h": 200.444,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.59186,
    "c": 0.10804,
    "h": 235.7
  },
  "luminance": 0.21245
}

Semantic roles & 50–950 ramp

primary
#2E87B5
secondary
#C79378
accent
#7B45E3
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2E87B5

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

Preview Lab → · Contrast checker → · Palette generator →

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