#2E87AC#2E87AC

#2E87AC is a mid, moderate cyan. Relative luminance 0.209; OKLCH L 58.7% C 0.100 H 229.9°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2E87AC
RGBrgb(46, 135, 172)
HSLhsl(198, 58%, 43%)
HSVhsv(198, 73%, 67%)
CMYKcmyk(73.3%, 21.5%, 0%, 32.5%)
CIE-LABlab(52.82, -13.65, -27.09)
CIE-LCHlch(52.82, 30.34, 243.25°)
OKLaboklab(58.75% -0.0641 -0.0761)
OKLCHoklch(58.75% 0.1 229.9)
XYZxyz(17.2341, 20.8854, 42.1447)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E87AC #AC532E
analogous
#2EAC92 #2E87AC #2E48AC
triadic
#2E87AC #AC2E87 #87AC2E
tetradic
#2E87AC #922EAC #AC532E #48AC2E
square
#2E87AC #922EAC #AC532E #48AC2E
split-complementary
#2E87AC #AC2E48 #AC922E
monochromatic
#143B4B #21617C #2E87AC #49A7CE #79BEDB

Accessibility & contrast

On white

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

On black

5.18
#2E87AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2E87AC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E87AC#FFFFFF#000000##000000
##2E87AC1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e87ac;
/* rgb */ color: rgb(46, 135, 172);
/* oklch */ color: oklch(58.7% 0.100 229.9);
Tailwind
colors: {
  custom: {
    50: '#78aac5',
    500: '#2e87ac',
    950: '#000000',
  },
}
SCSS
$custom: #2e87ac;
$custom-light: #78aac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e87ac",
  "rgb": {
    "r": 46,
    "g": 135,
    "b": 172
  },
  "hsl": {
    "h": 197.619,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.58746,
    "c": 0.0995,
    "h": 229.9
  },
  "luminance": 0.20887
}

Semantic roles & 50–950 ramp

primary
#2E87AC
secondary
#C38A72
accent
#7447E1
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2E87AC

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

Preview Lab → · Contrast checker → · Palette generator →

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