#2F87A3#2F87A3

#2F87A3 is a mid, moderate cyan. Relative luminance 0.206; OKLCH L 58.4% C 0.092 H 223.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2F87A3
RGBrgb(47, 135, 163)
HSLhsl(194, 55%, 41%)
HSVhsv(194, 71%, 64%)
CMYKcmyk(71.2%, 17.2%, 0%, 36.1%)
CIE-LABlab(52.48, -16.57, -22.43)
CIE-LCHlch(52.48, 27.88, 233.55°)
OKLaboklab(58.36% -0.0671 -0.0627)
OKLCHoklch(58.36% 0.092 223.1)
XYZxyz(16.4444, 20.5748, 37.7479)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87A3 #A34B2F
analogous
#2FA385 #2F87A3 #2F4DA3
triadic
#2F87A3 #A32F87 #87A32F
tetradic
#2F87A3 #852FA3 #A34B2F #4DA32F
square
#2F87A3 #852FA3 #A34B2F #4DA32F
split-complementary
#2F87A3 #A32F4D #A3852F
monochromatic
#143844 #216073 #2F87A3 #46AACA #75C0D7

Accessibility & contrast

On white

4.11
#2F87A3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#2F87A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87A3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87A3#FFFFFF#000000##000000
##2F87A31.004.115.125.12
#FFFFFF4.111.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7784A4
Deuteranopia (green-blind)
#6778A3
Tritanopia (blue-blind)
#009090
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2f87a3;
/* rgb */ color: rgb(47, 135, 163);
/* oklch */ color: oklch(58.4% 0.092 223.1);
Tailwind
colors: {
  custom: {
    50: '#77aabe',
    500: '#2f87a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f87a3;
$custom-light: #77aabe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87a3",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 163
  },
  "hsl": {
    "h": 194.483,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.58357,
    "c": 0.09182,
    "h": 223.1
  },
  "luminance": 0.20577
}

Semantic roles & 50–950 ramp

primary
#2F87A3
secondary
#BF826F
accent
#6D49DF
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2F87A3

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

Preview Lab → · Contrast checker → · Palette generator →

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