#2F87BC#2F87BC

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

Color values

HEX#2F87BC
RGBrgb(47, 135, 188)
HSLhsl(203, 60%, 46%)
HSVhsv(203, 75%, 74%)
CMYKcmyk(75%, 28.2%, 0%, 26.3%)
CIE-LABlab(53.56, -7.93, -35.12)
CIE-LCHlch(53.56, 36.01, 257.28°)
OKLaboklab(59.57% -0.0581 -0.0993)
OKLCHoklch(59.57% 0.115 239.7)
XYZxyz(18.9098, 21.5609, 50.7323)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87BC #BC642F
analogous
#2FBCAA #2F87BC #2F40BC
triadic
#2F87BC #BC2F87 #87BC2F
tetradic
#2F87BC #AA2FBC #BC642F #40BC2F
square
#2F87BC #AA2FBC #BC642F #40BC2F
split-complementary
#2F87BC #BC2F40 #BCAA2F
monochromatic
#17415A #23648B #2F87BC #54A4D4 #85BEE0

Accessibility & contrast

On white

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

On black

5.31
#2F87BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87BC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87BC#FFFFFF#000000##000000
##2F87BC1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f87bc;
/* rgb */ color: rgb(47, 135, 188);
/* oklch */ color: oklch(59.6% 0.115 239.7);
Tailwind
colors: {
  custom: {
    50: '#7ba9d0',
    500: '#2f87bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f87bc;
$custom-light: #7ba9d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87bc",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 188
  },
  "hsl": {
    "h": 202.553,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.59571,
    "c": 0.115,
    "h": 239.7
  },
  "luminance": 0.21563
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F87BC

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

Preview Lab → · Contrast checker → · Palette generator →

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