#2F87B2#2F87B2

#2F87B2 is a mid, moderate cyan. Relative luminance 0.211; OKLCH L 59.1% C 0.105 H 234.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F87B2
RGBrgb(47, 135, 178)
HSLhsl(200, 58%, 44%)
HSVhsv(200, 74%, 70%)
CMYKcmyk(73.6%, 24.2%, 0%, 30.2%)
CIE-LABlab(53.11, -11.44, -30.10)
CIE-LCHlch(53.11, 32.20, 249.18°)
OKLaboklab(59.06% -0.0615 -0.0847)
OKLCHoklch(59.06% 0.105 234)
XYZxyz(17.8689, 21.1446, 45.2504)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87B2 #B25A2F
analogous
#2FB29C #2F87B2 #2F45B2
triadic
#2F87B2 #B22F87 #87B22F
tetradic
#2F87B2 #9C2FB2 #B25A2F #45B22F
square
#2F87B2 #9C2FB2 #B25A2F #45B22F
split-complementary
#2F87B2 #B22F45 #B29C2F
monochromatic
#153E51 #226282 #2F87B2 #4EA5D0 #7EBEDD

Accessibility & contrast

On white

4.02
#2F87B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#2F87B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87B2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87B2#FFFFFF#000000##000000
##2F87B21.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B4
Deuteranopia (green-blind)
#6079B1
Tritanopia (blue-blind)
#009296
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2f87b2;
/* rgb */ color: rgb(47, 135, 178);
/* oklch */ color: oklch(59.1% 0.105 234.0);
Tailwind
colors: {
  custom: {
    50: '#79aac9',
    500: '#2f87b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f87b2;
$custom-light: #79aac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87b2",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 178
  },
  "hsl": {
    "h": 199.695,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.59064,
    "c": 0.10467,
    "h": 234
  },
  "luminance": 0.21147
}

Semantic roles & 50–950 ramp

primary
#2F87B2
secondary
#C69177
accent
#7946E1
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2F87B2

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

Preview Lab → · Contrast checker → · Palette generator →

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