#2F87AB#2F87AB

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

Color values

HEX#2F87AB
RGBrgb(47, 135, 171)
HSLhsl(197, 57%, 43%)
HSVhsv(197, 73%, 67%)
CMYKcmyk(72.5%, 21.1%, 0%, 32.9%)
CIE-LABlab(52.81, -13.86, -26.54)
CIE-LCHlch(52.81, 29.94, 242.43°)
OKLaboklab(58.73% -0.064 -0.0745)
OKLCHoklch(58.73% 0.098 229.3)
XYZxyz(17.1840, 20.8706, 41.6430)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87AB #AB532F
analogous
#2FAB91 #2F87AB #2F49AB
triadic
#2F87AB #AB2F87 #87AB2F
tetradic
#2F87AB #912FAB #AB532F #49AB2F
square
#2F87AB #912FAB #AB532F #49AB2F
split-complementary
#2F87AB #AB2F49 #AB912F
monochromatic
#153B4B #22617B #2F87AB #4AA7CD #7ABEDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F87AB#FFFFFF#000000##000000
##2F87AB1.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)
#6479AB
Tritanopia (blue-blind)
#009193
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2f87ab;
/* rgb */ color: rgb(47, 135, 171);
/* oklch */ color: oklch(58.7% 0.098 229.3);
Tailwind
colors: {
  custom: {
    50: '#78aac4',
    500: '#2f87ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f87ab;
$custom-light: #78aac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87ab",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 171
  },
  "hsl": {
    "h": 197.419,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.58726,
    "c": 0.0982,
    "h": 229.3
  },
  "luminance": 0.20873
}

Semantic roles & 50–950 ramp

primary
#2F87AB
secondary
#C38A73
accent
#7448E0
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2F87AB

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

Preview Lab → · Contrast checker → · Palette generator →

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