#2F87B3#2F87B3

#2F87B3 is a mid, moderate cyan. Relative luminance 0.212; OKLCH L 59.1% C 0.106 H 234.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2F87B3
RGBrgb(47, 135, 179)
HSLhsl(200, 58%, 44%)
HSVhsv(200, 74%, 70%)
CMYKcmyk(73.7%, 24.6%, 0%, 29.8%)
CIE-LABlab(53.15, -11.10, -30.61)
CIE-LCHlch(53.15, 32.55, 250.07°)
OKLaboklab(59.11% -0.0611 -0.0862)
OKLCHoklch(59.11% 0.106 234.7)
XYZxyz(17.9697, 21.1849, 45.7811)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87B3 #B35B2F
analogous
#2FB39D #2F87B3 #2F45B3
triadic
#2F87B3 #B32F87 #87B32F
tetradic
#2F87B3 #9D2FB3 #B35B2F #45B32F
square
#2F87B3 #9D2FB3 #B35B2F #45B32F
split-complementary
#2F87B3 #B32F45 #B39D2F
monochromatic
#163E52 #226283 #2F87B3 #4FA5D1 #7FBEDD

Accessibility & contrast

On white

4.01
#2F87B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#2F87B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87B3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87B3#FFFFFF#000000##000000
##2F87B31.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B5
Deuteranopia (green-blind)
#6079B2
Tritanopia (blue-blind)
#009396
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2f87b3;
/* rgb */ color: rgb(47, 135, 179);
/* oklch */ color: oklch(59.1% 0.106 234.7);
Tailwind
colors: {
  custom: {
    50: '#7aa9ca',
    500: '#2f87b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f87b3;
$custom-light: #7aa9ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87b3",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 179
  },
  "hsl": {
    "h": 200,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.59114,
    "c": 0.10565,
    "h": 234.7
  },
  "luminance": 0.21187
}

Semantic roles & 50–950 ramp

primary
#2F87B3
secondary
#C69278
accent
#7A46E2
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2F87B3

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

Preview Lab → · Contrast checker → · Palette generator →

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