#2F87A4#2F87A4

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

Color values

HEX#2F87A4
RGBrgb(47, 135, 164)
HSLhsl(195, 55%, 41%)
HSVhsv(195, 71%, 64%)
CMYKcmyk(71.3%, 17.7%, 0%, 35.7%)
CIE-LABlab(52.52, -16.23, -22.95)
CIE-LCHlch(52.52, 28.11, 234.73°)
OKLaboklab(58.4% -0.0667 -0.0642)
OKLCHoklch(58.4% 0.093 223.9)
XYZxyz(16.5344, 20.6107, 38.2216)
Luminance0.2061 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87A4 #A44C2F
analogous
#2FA487 #2F87A4 #2F4DA4
triadic
#2F87A4 #A42F87 #87A42F
tetradic
#2F87A4 #872FA4 #A44C2F #4DA42F
square
#2F87A4 #872FA4 #A44C2F #4DA42F
split-complementary
#2F87A4 #A42F4D #A4872F
monochromatic
#143945 #216074 #2F87A4 #46A9CA #76BFD8

Accessibility & contrast

On white

4.10
#2F87A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F87A4#FFFFFF#000000##000000
##2F87A41.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f87a4;
/* rgb */ color: rgb(47, 135, 164);
/* oklch */ color: oklch(58.4% 0.093 223.9);
Tailwind
colors: {
  custom: {
    50: '#77aabf',
    500: '#2f87a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f87a4;
$custom-light: #77aabf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87a4",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 164
  },
  "hsl": {
    "h": 194.872,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.58402,
    "c": 0.09255,
    "h": 223.9
  },
  "luminance": 0.20613
}

Semantic roles & 50–950 ramp

primary
#2F87A4
secondary
#C0836F
accent
#6E49DF
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2F87A4

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

Preview Lab → · Contrast checker → · Palette generator →

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