#2F87A9#2F87A9

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

Color values

HEX#2F87A9
RGBrgb(47, 135, 169)
HSLhsl(197, 56%, 42%)
HSVhsv(197, 72%, 66%)
CMYKcmyk(72.2%, 20.1%, 0%, 33.7%)
CIE-LABlab(52.72, -14.54, -25.52)
CIE-LCHlch(52.72, 29.37, 240.32°)
OKLaboklab(58.63% -0.0648 -0.0715)
OKLCHoklch(58.63% 0.097 227.8)
XYZxyz(16.9948, 20.7949, 40.6466)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87A9 #A9512F
analogous
#2FA98E #2F87A9 #2F4AA9
triadic
#2F87A9 #A92F87 #87A92F
tetradic
#2F87A9 #8E2FA9 #A9512F #4AA92F
square
#2F87A9 #8E2FA9 #A9512F #4AA92F
split-complementary
#2F87A9 #A92F4A #A98E2F
monochromatic
#143B49 #226179 #2F87A9 #49A8CC #79BFDA

Accessibility & contrast

On white

4.07
#2F87A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#2F87A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87A9
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87A9#FFFFFF#000000##000000
##2F87A91.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7585AB
Deuteranopia (green-blind)
#6479A9
Tritanopia (blue-blind)
#009192
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2f87a9;
/* rgb */ color: rgb(47, 135, 169);
/* oklch */ color: oklch(58.6% 0.097 227.8);
Tailwind
colors: {
  custom: {
    50: '#78aac2',
    500: '#2f87a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f87a9;
$custom-light: #78aac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87a9",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 169
  },
  "hsl": {
    "h": 196.721,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.58632,
    "c": 0.0965,
    "h": 227.8
  },
  "luminance": 0.20797
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F87A9

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

Preview Lab → · Contrast checker → · Palette generator →

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