#2F87B0#2F87B0

#2F87B0 is a mid, moderate cyan. Relative luminance 0.211; OKLCH L 59.0% C 0.103 H 232.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2F87B0
RGBrgb(47, 135, 176)
HSLhsl(199, 58%, 44%)
HSVhsv(199, 73%, 69%)
CMYKcmyk(73.3%, 23.3%, 0%, 31%)
CIE-LABlab(53.02, -12.14, -29.09)
CIE-LCHlch(53.02, 31.52, 247.35°)
OKLaboklab(58.97% -0.0622 -0.0818)
OKLCHoklch(58.97% 0.103 232.8)
XYZxyz(17.6696, 21.0648, 44.2006)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87B0 #B0582F
analogous
#2FB098 #2F87B0 #2F46B0
triadic
#2F87B0 #B02F87 #87B02F
tetradic
#2F87B0 #982FB0 #B0582F #46B02F
square
#2F87B0 #982FB0 #B0582F #46B02F
split-complementary
#2F87B0 #B02F46 #B0982F
monochromatic
#153D4F #226280 #2F87B0 #4DA6CF #7DBEDC

Accessibility & contrast

On white

4.03
#2F87B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#2F87B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87B0
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87B0#FFFFFF#000000##000000
##2F87B01.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7386B2
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#009295
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2f87b0;
/* rgb */ color: rgb(47, 135, 176);
/* oklch */ color: oklch(59.0% 0.103 232.8);
Tailwind
colors: {
  custom: {
    50: '#79aac7',
    500: '#2f87b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f87b0;
$custom-light: #79aac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87b0",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 176
  },
  "hsl": {
    "h": 199.07,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.58966,
    "c": 0.10274,
    "h": 232.8
  },
  "luminance": 0.21067
}

Semantic roles & 50–950 ramp

primary
#2F87B0
secondary
#C58F76
accent
#7847E1
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2F87B0

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

Preview Lab → · Contrast checker → · Palette generator →

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