#2F87A8#2F87A8

#2F87A8 is a mid, moderate cyan. Relative luminance 0.208; OKLCH L 58.6% C 0.096 H 227.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2F87A8
RGBrgb(47, 135, 168)
HSLhsl(196, 56%, 42%)
HSVhsv(196, 72%, 66%)
CMYKcmyk(72%, 19.6%, 0%, 34.1%)
CIE-LABlab(52.68, -14.88, -25.00)
CIE-LCHlch(52.68, 29.10, 239.24°)
OKLaboklab(58.59% -0.0651 -0.0701)
OKLCHoklch(58.59% 0.096 227.1)
XYZxyz(16.9013, 20.7575, 40.1540)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87A8 #A8502F
analogous
#2FA88D #2F87A8 #2F4AA8
triadic
#2F87A8 #A82F87 #87A82F
tetradic
#2F87A8 #8D2FA8 #A8502F #4AA82F
square
#2F87A8 #8D2FA8 #A8502F #4AA82F
split-complementary
#2F87A8 #A82F4A #A88D2F
monochromatic
#143A48 #226178 #2F87A8 #48A8CC #78BFD9

Accessibility & contrast

On white

4.08
#2F87A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#2F87A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87A8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87A8#FFFFFF#000000##000000
##2F87A81.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7584AA
Deuteranopia (green-blind)
#6578A8
Tritanopia (blue-blind)
#009192
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2f87a8;
/* rgb */ color: rgb(47, 135, 168);
/* oklch */ color: oklch(58.6% 0.096 227.1);
Tailwind
colors: {
  custom: {
    50: '#78aac2',
    500: '#2f87a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f87a8;
$custom-light: #78aac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87a8",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 168
  },
  "hsl": {
    "h": 196.364,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.58586,
    "c": 0.09567,
    "h": 227.1
  },
  "luminance": 0.20759
}

Semantic roles & 50–950 ramp

primary
#2F87A8
secondary
#C18771
accent
#7248E0
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2F87A8

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

Preview Lab → · Contrast checker → · Palette generator →

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