#2F87B7#2F87B7

#2F87B7 is a mid, moderate cyan. Relative luminance 0.214; OKLCH L 59.3% C 0.110 H 237.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2F87B7
RGBrgb(47, 135, 183)
HSLhsl(201, 59%, 45%)
HSVhsv(201, 74%, 72%)
CMYKcmyk(74.3%, 26.2%, 0%, 28.2%)
CIE-LABlab(53.33, -9.69, -32.62)
CIE-LCHlch(53.33, 34.03, 253.45°)
OKLaboklab(59.31% -0.0597 -0.092)
OKLCHoklch(59.31% 0.11 237)
XYZxyz(18.3801, 21.3490, 47.9426)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87B7 #B75F2F
analogous
#2FB7A3 #2F87B7 #2F43B7
triadic
#2F87B7 #B72F87 #87B72F
tetradic
#2F87B7 #A32FB7 #B75F2F #43B72F
square
#2F87B7 #A32FB7 #B75F2F #43B72F
split-complementary
#2F87B7 #B72F43 #B7A32F
monochromatic
#163F56 #226386 #2F87B7 #51A5D2 #82BEDF

Accessibility & contrast

On white

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

On black

5.27
#2F87B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87B7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87B7#FFFFFF#000000##000000
##2F87B71.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7087B9
Deuteranopia (green-blind)
#5E7AB6
Tritanopia (blue-blind)
#009397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2f87b7;
/* rgb */ color: rgb(47, 135, 183);
/* oklch */ color: oklch(59.3% 0.110 237.0);
Tailwind
colors: {
  custom: {
    50: '#7aa9cc',
    500: '#2f87b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f87b7;
$custom-light: #7aa9cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87b7",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 183
  },
  "hsl": {
    "h": 201.176,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.59314,
    "c": 0.10969,
    "h": 237
  },
  "luminance": 0.21351
}

Semantic roles & 50–950 ramp

primary
#2F87B7
secondary
#C8957A
accent
#7D45E2
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #2F87B7

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

Preview Lab → · Contrast checker → · Palette generator →

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