#2E87AB#2E87AB

#2E87AB is a mid, moderate cyan. Relative luminance 0.208; OKLCH L 58.7% C 0.099 H 229.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2E87AB
RGBrgb(46, 135, 171)
HSLhsl(197, 58%, 43%)
HSVhsv(197, 73%, 67%)
CMYKcmyk(73.1%, 21.1%, 0%, 32.9%)
CIE-LABlab(52.78, -14.00, -26.58)
CIE-LCHlch(52.78, 30.04, 242.23°)
OKLaboklab(58.7% -0.0645 -0.0746)
OKLCHoklch(58.7% 0.099 229.1)
XYZxyz(17.1384, 20.8471, 41.6408)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E87AB #AB522E
analogous
#2EAB91 #2E87AB #2E48AB
triadic
#2E87AB #AB2E87 #87AB2E
tetradic
#2E87AB #912EAB #AB522E #48AB2E
square
#2E87AB #912EAB #AB522E #48AB2E
split-complementary
#2E87AB #AB2E48 #AB912E
monochromatic
#143B4B #21617B #2E87AB #48A7CE #79BFDB

Accessibility & contrast

On white

4.06
#2E87AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#2E87AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2E87AB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E87AB#FFFFFF#000000##000000
##2E87AB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7485AD
Deuteranopia (green-blind)
#6379AB
Tritanopia (blue-blind)
#009193
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2e87ab;
/* rgb */ color: rgb(46, 135, 171);
/* oklch */ color: oklch(58.7% 0.099 229.1);
Tailwind
colors: {
  custom: {
    50: '#78aac4',
    500: '#2e87ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e87ab;
$custom-light: #78aac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e87ab",
  "rgb": {
    "r": 46,
    "g": 135,
    "b": 171
  },
  "hsl": {
    "h": 197.28,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.58698,
    "c": 0.09864,
    "h": 229.1
  },
  "luminance": 0.20849
}

Semantic roles & 50–950 ramp

primary
#2E87AB
secondary
#C38972
accent
#7347E1
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2E87AB

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

Preview Lab → · Contrast checker → · Palette generator →

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