#2F87A5#2F87A5

#2F87A5 is a mid, moderate cyan. Relative luminance 0.206; OKLCH L 58.4% C 0.093 H 224.7°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#2F87A5
RGBrgb(47, 135, 165)
HSLhsl(195, 56%, 42%)
HSVhsv(195, 72%, 65%)
CMYKcmyk(71.5%, 18.2%, 0%, 35.3%)
CIE-LABlab(52.56, -15.90, -23.46)
CIE-LCHlch(52.56, 28.34, 235.88°)
OKLaboklab(58.45% -0.0663 -0.0656)
OKLCHoklch(58.45% 0.093 224.7)
XYZxyz(16.6250, 20.6470, 38.6991)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87A5 #A54D2F
analogous
#2FA588 #2F87A5 #2F4CA5
triadic
#2F87A5 #A52F87 #87A52F
tetradic
#2F87A5 #882FA5 #A54D2F #4CA52F
square
#2F87A5 #882FA5 #A54D2F #4CA52F
split-complementary
#2F87A5 #A52F4C #A5882F
monochromatic
#143946 #216075 #2F87A5 #47A9CB #76BFD8

Accessibility & contrast

On white

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

On black

5.13
#2F87A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87A5
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87A5#FFFFFF#000000##000000
##2F87A51.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A7
Deuteranopia (green-blind)
#6678A5
Tritanopia (blue-blind)
#009091
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2f87a5;
/* rgb */ color: rgb(47, 135, 165);
/* oklch */ color: oklch(58.4% 0.093 224.7);
Tailwind
colors: {
  custom: {
    50: '#77aabf',
    500: '#2f87a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f87a5;
$custom-light: #77aabf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87a5",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 165
  },
  "hsl": {
    "h": 195.254,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.58448,
    "c": 0.0933,
    "h": 224.7
  },
  "luminance": 0.20649
}

Semantic roles & 50–950 ramp

primary
#2F87A5
secondary
#C08470
accent
#6F49DF
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2F87A5

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

Preview Lab → · Contrast checker → · Palette generator →

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