#2F87A6#2F87A6

#2F87A6 is a mid, moderate cyan. Relative luminance 0.207; OKLCH L 58.5% C 0.094 H 225.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2F87A6
RGBrgb(47, 135, 166)
HSLhsl(196, 56%, 42%)
HSVhsv(196, 72%, 65%)
CMYKcmyk(71.7%, 18.7%, 0%, 34.9%)
CIE-LABlab(52.60, -15.56, -23.98)
CIE-LCHlch(52.60, 28.58, 237.02°)
OKLaboklab(58.49% -0.0659 -0.0671)
OKLCHoklch(58.49% 0.094 225.5)
XYZxyz(16.7164, 20.6836, 39.1803)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87A6 #A64E2F
analogous
#2FA68A #2F87A6 #2F4CA6
triadic
#2F87A6 #A62F87 #87A62F
tetradic
#2F87A6 #8A2FA6 #A64E2F #4CA62F
square
#2F87A6 #8A2FA6 #A64E2F #4CA62F
split-complementary
#2F87A6 #A62F4C #A68A2F
monochromatic
#143947 #216076 #2F87A6 #47A9CB #77BFD8

Accessibility & contrast

On white

4.09
#2F87A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#2F87A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87A6
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87A6#FFFFFF#000000##000000
##2F87A61.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A8
Deuteranopia (green-blind)
#6678A6
Tritanopia (blue-blind)
#009091
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2f87a6;
/* rgb */ color: rgb(47, 135, 166);
/* oklch */ color: oklch(58.5% 0.094 225.5);
Tailwind
colors: {
  custom: {
    50: '#78aac0',
    500: '#2f87a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f87a6;
$custom-light: #78aac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87a6",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 166
  },
  "hsl": {
    "h": 195.63,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.58493,
    "c": 0.09407,
    "h": 225.5
  },
  "luminance": 0.20685
}

Semantic roles & 50–950 ramp

primary
#2F87A6
secondary
#C18570
accent
#7049DF
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2F87A6

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

Preview Lab → · Contrast checker → · Palette generator →

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