#2F87E2#2F87E2

#2F87E2 is a mid, vivid cyan. Relative luminance 0.234; OKLCH L 61.7% C 0.160 H 252.7°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#2F87E2
RGBrgb(47, 135, 226)
HSLhsl(211, 76%, 54%)
HSVhsv(211, 79%, 89%)
CMYKcmyk(79.2%, 40.3%, 0%, 11.4%)
CIE-LABlab(55.50, 5.88, -53.52)
CIE-LCHlch(55.50, 53.84, 276.27°)
OKLaboklab(61.73% -0.0476 -0.153)
OKLCHoklch(61.73% 0.16 252.7)
XYZxyz(23.5586, 23.4204, 75.2157)
Luminance0.2342 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87E2 #E28A2F
analogous
#2FE0E2 #2F87E2 #302FE2
triadic
#2F87E2 #E22F87 #87E22F
tetradic
#2F87E2 #E22FE0 #E28A2F #2FE230
square
#2F87E2 #E22FE0 #E28A2F #2FE230
split-complementary
#2F87E2 #E2302F #E0E22F
monochromatic
#124A84 #1A69BA #2F87E2 #65A6E9 #9AC5F1

Accessibility & contrast

On white

3.69
#2F87E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#2F87E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87E2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87E2#FFFFFF#000000##000000
##2F87E21.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8EE6
Deuteranopia (green-blind)
#3C7EE0
Tritanopia (blue-blind)
#009DA9
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #2f87e2;
/* rgb */ color: rgb(47, 135, 226);
/* oklch */ color: oklch(61.7% 0.160 252.7);
Tailwind
colors: {
  custom: {
    50: '#82a9eb',
    500: '#2f87e2',
    950: '#000000',
  },
}
SCSS
$custom: #2f87e2;
$custom-light: #82a9eb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87e2",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 210.503,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61735,
    "c": 0.16029,
    "h": 252.7
  },
  "luminance": 0.23423
}

Semantic roles & 50–950 ramp

primary
#2F87E2
secondary
#DDB790
accent
#9536F2
background
#F8FAFE
surface
#F0F4FD
border
#CBCED5
text
#0C0F16
muted
#7D7F84

Preview Lab

Preview with #2F87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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