#2F87B5#2F87B5

#2F87B5 is a mid, moderate cyan. Relative luminance 0.213; OKLCH L 59.2% C 0.108 H 235.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2F87B5
RGBrgb(47, 135, 181)
HSLhsl(201, 59%, 45%)
HSVhsv(201, 74%, 71%)
CMYKcmyk(74%, 25.4%, 0%, 29%)
CIE-LABlab(53.24, -10.40, -31.61)
CIE-LCHlch(53.24, 33.28, 251.80°)
OKLaboklab(59.21% -0.0604 -0.0891)
OKLCHoklch(59.21% 0.108 235.9)
XYZxyz(18.1734, 21.2664, 46.8541)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87B5 #B55D2F
analogous
#2FB5A0 #2F87B5 #2F44B5
triadic
#2F87B5 #B52F87 #87B52F
tetradic
#2F87B5 #A02FB5 #B55D2F #44B52F
square
#2F87B5 #A02FB5 #B55D2F #44B52F
split-complementary
#2F87B5 #B52F44 #B5A02F
monochromatic
#163F54 #226384 #2F87B5 #50A5D1 #80BEDE

Accessibility & contrast

On white

4.00
#2F87B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#2F87B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87B5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87B5#FFFFFF#000000##000000
##2F87B51.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7186B7
Deuteranopia (green-blind)
#5F79B4
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2f87b5;
/* rgb */ color: rgb(47, 135, 181);
/* oklch */ color: oklch(59.2% 0.108 235.9);
Tailwind
colors: {
  custom: {
    50: '#7aa9cb',
    500: '#2f87b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f87b5;
$custom-light: #7aa9cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87b5",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 181
  },
  "hsl": {
    "h": 200.597,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.59213,
    "c": 0.10765,
    "h": 235.9
  },
  "luminance": 0.21268
}

Semantic roles & 50–950 ramp

primary
#2F87B5
secondary
#C79479
accent
#7B46E2
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2F87B5

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

Preview Lab → · Contrast checker → · Palette generator →

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