#2F87BD#2F87BD

#2F87BD is a mid, moderate cyan. Relative luminance 0.216; OKLCH L 59.6% C 0.116 H 240.2°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#2F87BD
RGBrgb(47, 135, 189)
HSLhsl(203, 60%, 46%)
HSVhsv(203, 75%, 74%)
CMYKcmyk(75.1%, 28.6%, 0%, 25.9%)
CIE-LABlab(53.60, -7.57, -35.62)
CIE-LCHlch(53.60, 36.42, 258.00°)
OKLaboklab(59.62% -0.0577 -0.1007)
OKLCHoklch(59.62% 0.116 240.2)
XYZxyz(19.0180, 21.6042, 51.3020)
Luminance0.2161 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87BD #BD652F
analogous
#2FBDAC #2F87BD #2F40BD
triadic
#2F87BD #BD2F87 #87BD2F
tetradic
#2F87BD #AC2FBD #BD652F #40BD2F
square
#2F87BD #AC2FBD #BD652F #40BD2F
split-complementary
#2F87BD #BD2F40 #BDAC2F
monochromatic
#17415B #23648C #2F87BD #55A4D5 #86BEE1

Accessibility & contrast

On white

3.95
#2F87BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#2F87BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87BD
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87BD#FFFFFF#000000##000000
##2F87BD1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E88BF
Deuteranopia (green-blind)
#5A7ABC
Tritanopia (blue-blind)
#00959A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #2f87bd;
/* rgb */ color: rgb(47, 135, 189);
/* oklch */ color: oklch(59.6% 0.116 240.2);
Tailwind
colors: {
  custom: {
    50: '#7ba9d1',
    500: '#2f87bd',
    950: '#000000',
  },
}
SCSS
$custom: #2f87bd;
$custom-light: #7ba9d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87bd",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 189
  },
  "hsl": {
    "h": 202.817,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.59623,
    "c": 0.11608,
    "h": 240.2
  },
  "luminance": 0.21606
}

Semantic roles & 50–950 ramp

primary
#2F87BD
secondary
#CA9B7E
accent
#8144E3
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B0F14
muted
#7C7F82

Preview Lab

Preview with #2F87BD

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

Preview Lab → · Contrast checker → · Palette generator →

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