#2F87CA#2F87CA

#2F87CA is a mid, vivid cyan. Relative luminance 0.222; OKLCH L 60.3% C 0.131 H 245.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2F87CA
RGBrgb(47, 135, 202)
HSLhsl(206, 62%, 49%)
HSVhsv(206, 77%, 79%)
CMYKcmyk(76.7%, 33.2%, 0%, 20.8%)
CIE-LABlab(54.23, -2.91, -42.03)
CIE-LCHlch(54.23, 42.13, 266.04°)
OKLaboklab(60.33% -0.0538 -0.1194)
OKLCHoklch(60.33% 0.131 245.7)
XYZxyz(20.4928, 22.1941, 59.0695)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87CA #CA722F
analogous
#2FCAC0 #2F87CA #2F3ACA
triadic
#2F87CA #CA2F87 #87CA2F
tetradic
#2F87CA #C02FCA #CA722F #3ACA2F
square
#2F87CA #C02FCA #CA722F #3ACA2F
split-complementary
#2F87CA #CA2F3A #CAC02F
monochromatic
#184567 #236698 #2F87CA #5DA4D9 #8FC0E5

Accessibility & contrast

On white

3.86
#2F87CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#2F87CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87CA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87CA#FFFFFF#000000##000000
##2F87CA1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#688ACD
Deuteranopia (green-blind)
#527BC9
Tritanopia (blue-blind)
#00979F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #2f87ca;
/* rgb */ color: rgb(47, 135, 202);
/* oklch */ color: oklch(60.3% 0.131 245.7);
Tailwind
colors: {
  custom: {
    50: '#7ea9da',
    500: '#2f87ca',
    950: '#000000',
  },
}
SCSS
$custom: #2f87ca;
$custom-light: #7ea9da;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87ca",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 205.935,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.60325,
    "c": 0.13093,
    "h": 245.7
  },
  "luminance": 0.22197
}

Semantic roles & 50–950 ramp

primary
#2F87CA
secondary
#CFA586
accent
#8942E5
background
#F8FAFD
surface
#EFF4FB
border
#CACED4
text
#0B0F15
muted
#7C7F83

Preview Lab

Preview with #2F87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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