#2F87BB#2F87BB

#2F87BB is a mid, moderate cyan. Relative luminance 0.215; OKLCH L 59.5% C 0.114 H 239.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2F87BB
RGBrgb(47, 135, 187)
HSLhsl(202, 60%, 46%)
HSVhsv(202, 75%, 73%)
CMYKcmyk(74.9%, 27.8%, 0%, 26.7%)
CIE-LABlab(53.51, -8.28, -34.62)
CIE-LCHlch(53.51, 35.60, 256.55°)
OKLaboklab(59.52% -0.0584 -0.0978)
OKLCHoklch(59.52% 0.114 239.2)
XYZxyz(18.8024, 21.5179, 50.1665)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87BB #BB632F
analogous
#2FBBA9 #2F87BB #2F41BB
triadic
#2F87BB #BB2F87 #87BB2F
tetradic
#2F87BB #A92FBB #BB632F #41BB2F
square
#2F87BB #A92FBB #BB632F #41BB2F
split-complementary
#2F87BB #BB2F41 #BBA92F
monochromatic
#164059 #23648A #2F87BB #53A4D4 #84BEE0

Accessibility & contrast

On white

3.96
#2F87BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#2F87BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87BB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87BB#FFFFFF#000000##000000
##2F87BB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F87BD
Deuteranopia (green-blind)
#5B7ABA
Tritanopia (blue-blind)
#009499
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #2f87bb;
/* rgb */ color: rgb(47, 135, 187);
/* oklch */ color: oklch(59.5% 0.114 239.2);
Tailwind
colors: {
  custom: {
    50: '#7ba9cf',
    500: '#2f87bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f87bb;
$custom-light: #7ba9cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87bb",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 187
  },
  "hsl": {
    "h": 202.286,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.59519,
    "c": 0.11392,
    "h": 239.2
  },
  "luminance": 0.2152
}

Semantic roles & 50–950 ramp

primary
#2F87BB
secondary
#C9997C
accent
#8045E3
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B0F14
muted
#7C7F82

Preview Lab

Preview with #2F87BB

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

Preview Lab → · Contrast checker → · Palette generator →

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