#2F87B9#2F87B9

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

Color values

HEX#2F87B9
RGBrgb(47, 135, 185)
HSLhsl(202, 59%, 45%)
HSVhsv(202, 75%, 73%)
CMYKcmyk(74.6%, 27%, 0%, 27.5%)
CIE-LABlab(53.42, -8.99, -33.62)
CIE-LCHlch(53.42, 34.80, 255.03°)
OKLaboklab(59.42% -0.0591 -0.0949)
OKLCHoklch(59.42% 0.112 238.1)
XYZxyz(18.5898, 21.4329, 49.0468)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87B9 #B9612F
analogous
#2FB9A6 #2F87B9 #2F42B9
triadic
#2F87B9 #B92F87 #87B92F
tetradic
#2F87B9 #A62FB9 #B9612F #42B92F
square
#2F87B9 #A62FB9 #B9612F #42B92F
split-complementary
#2F87B9 #B92F42 #B9A62F
monochromatic
#164057 #236388 #2F87B9 #52A4D3 #83BEDF

Accessibility & contrast

On white

3.97
#2F87B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#2F87B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87B9
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87B9#FFFFFF#000000##000000
##2F87B91.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F87BB
Deuteranopia (green-blind)
#5D7AB8
Tritanopia (blue-blind)
#009498
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #2f87b9;
/* rgb */ color: rgb(47, 135, 185);
/* oklch */ color: oklch(59.4% 0.112 238.1);
Tailwind
colors: {
  custom: {
    50: '#7ba9ce',
    500: '#2f87b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f87b9;
$custom-light: #7ba9ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87b9",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 185
  },
  "hsl": {
    "h": 201.739,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.59416,
    "c": 0.11179,
    "h": 238.1
  },
  "luminance": 0.21435
}

Semantic roles & 50–950 ramp

primary
#2F87B9
secondary
#C9977B
accent
#7E45E3
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #2F87B9

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

Preview Lab → · Contrast checker → · Palette generator →

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