#2F87AA#2F87AA

#2F87AA is a mid, moderate cyan. Relative luminance 0.208; OKLCH L 58.7% C 0.097 H 228.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2F87AA
RGBrgb(47, 135, 170)
HSLhsl(197, 57%, 43%)
HSVhsv(197, 72%, 67%)
CMYKcmyk(72.4%, 20.6%, 0%, 33.3%)
CIE-LABlab(52.77, -14.20, -26.03)
CIE-LCHlch(52.77, 29.65, 241.38°)
OKLaboklab(58.68% -0.0644 -0.073)
OKLCHoklch(58.68% 0.097 228.6)
XYZxyz(17.0890, 20.8326, 41.1429)
Luminance0.2084 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87AA #AA522F
analogous
#2FAA8F #2F87AA #2F4AAA
triadic
#2F87AA #AA2F87 #87AA2F
tetradic
#2F87AA #8F2FAA #AA522F #4AAA2F
square
#2F87AA #8F2FAA #AA522F #4AAA2F
split-complementary
#2F87AA #AA2F4A #AA8F2F
monochromatic
#143B4A #22617A #2F87AA #49A7CD #79BFDA

Accessibility & contrast

On white

4.06
#2F87AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#2F87AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87AA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87AA#FFFFFF#000000##000000
##2F87AA1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7585AC
Deuteranopia (green-blind)
#6479AA
Tritanopia (blue-blind)
#009193
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2f87aa;
/* rgb */ color: rgb(47, 135, 170);
/* oklch */ color: oklch(58.7% 0.097 228.6);
Tailwind
colors: {
  custom: {
    50: '#78aac3',
    500: '#2f87aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f87aa;
$custom-light: #78aac3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87aa",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 170
  },
  "hsl": {
    "h": 197.073,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.58679,
    "c": 0.09734,
    "h": 228.6
  },
  "luminance": 0.20835
}

Semantic roles & 50–950 ramp

primary
#2F87AA
secondary
#C28972
accent
#7348E0
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2F87AA

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

Preview Lab → · Contrast checker → · Palette generator →

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