#2F877A#2F877A

#2F877A is a mid, moderate teal. Relative luminance 0.193; OKLCH L 56.8% C 0.085 H 181.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2F877A
RGBrgb(47, 135, 122)
HSLhsl(171, 48%, 36%)
HSVhsv(171, 65%, 53%)
CMYKcmyk(65.2%, 0%, 9.6%, 47.1%)
CIE-LABlab(51.08, -29.24, -0.70)
CIE-LCHlch(51.08, 29.25, 181.37°)
OKLaboklab(56.76% -0.0853 -0.0024)
OKLCHoklch(56.76% 0.085 181.6)
XYZxyz(13.3475, 19.3360, 21.4374)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F877A #872F3C
analogous
#2F874E #2F877A #2F6887
triadic
#2F877A #7A2F87 #877A2F
tetradic
#2F877A #4E2F87 #872F3C #68872F
square
#2F877A #4E2F87 #872F3C #68872F
split-complementary
#2F877A #872F68 #874E2F
monochromatic
#0F2C28 #1F5A51 #2F877A #3FB4A3 #66CABB

Accessibility & contrast

On white

4.31
#2F877A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#2F877A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F877A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F877A#FFFFFF#000000##000000
##2F877A1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#817F7A
Deuteranopia (green-blind)
#74767B
Tritanopia (blue-blind)
#008983
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2f877a;
/* rgb */ color: rgb(47, 135, 122);
/* oklch */ color: oklch(56.8% 0.085 181.6);
Tailwind
colors: {
  custom: {
    50: '#73aaa0',
    500: '#2f877a',
    950: '#000000',
  },
}
SCSS
$custom: #2f877a;
$custom-light: #73aaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f877a",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 122
  },
  "hsl": {
    "h": 171.136,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5676,
    "c": 0.08528,
    "h": 181.6
  },
  "luminance": 0.19337
}

Semantic roles & 50–950 ramp

primary
#2F877A
secondary
#B1616D
accent
#5064D8
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #2F877A

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

Preview Lab → · Contrast checker → · Palette generator →

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