#2F87B8#2F87B8

#2F87B8 is a mid, moderate cyan. Relative luminance 0.214; OKLCH L 59.4% C 0.111 H 237.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2F87B8
RGBrgb(47, 135, 184)
HSLhsl(201, 59%, 45%)
HSVhsv(201, 74%, 72%)
CMYKcmyk(74.5%, 26.6%, 0%, 27.8%)
CIE-LABlab(53.37, -9.34, -33.12)
CIE-LCHlch(53.37, 34.41, 254.25°)
OKLaboklab(59.37% -0.0594 -0.0935)
OKLCHoklch(59.37% 0.111 237.6)
XYZxyz(18.4846, 21.3908, 48.4927)
Luminance0.2139 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87B8 #B8602F
analogous
#2FB8A4 #2F87B8 #2F42B8
triadic
#2F87B8 #B82F87 #87B82F
tetradic
#2F87B8 #A42FB8 #B8602F #42B82F
square
#2F87B8 #A42FB8 #B8602F #42B82F
split-complementary
#2F87B8 #B82F42 #B8A42F
monochromatic
#163F57 #236387 #2F87B8 #52A4D3 #82BEDF

Accessibility & contrast

On white

3.98
#2F87B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#2F87B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87B8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87B8#FFFFFF#000000##000000
##2F87B81.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7087BA
Deuteranopia (green-blind)
#5D7AB7
Tritanopia (blue-blind)
#009498
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2f87b8;
/* rgb */ color: rgb(47, 135, 184);
/* oklch */ color: oklch(59.4% 0.111 237.6);
Tailwind
colors: {
  custom: {
    50: '#7aa9cd',
    500: '#2f87b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f87b8;
$custom-light: #7aa9cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87b8",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 184
  },
  "hsl": {
    "h": 201.46,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.59365,
    "c": 0.11074,
    "h": 237.6
  },
  "luminance": 0.21393
}

Semantic roles & 50–950 ramp

primary
#2F87B8
secondary
#C8967B
accent
#7E45E2
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #2F87B8

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

Preview Lab → · Contrast checker → · Palette generator →

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