#2F797F#2F797F

#2F797F is a mid, moderate teal. Relative luminance 0.158; OKLCH L 53.3% C 0.073 H 202.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2F797F
RGBrgb(47, 121, 127)
HSLhsl(185, 46%, 34%)
HSVhsv(185, 63%, 50%)
CMYKcmyk(63%, 4.7%, 0%, 50.2%)
CIE-LABlab(46.72, -20.66, -10.10)
CIE-LCHlch(46.72, 23.00, 206.05°)
OKLaboklab(53.29% -0.067 -0.028)
OKLCHoklch(53.29% 0.073 202.6)
XYZxyz(11.8388, 15.8102, 22.5023)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F797F #7F352F
analogous
#2F7F5D #2F797F #2F517F
triadic
#2F797F #7F2F79 #797F2F
tetradic
#2F797F #5D2F7F #7F352F #517F2F
square
#2F797F #5D2F7F #7F352F #517F2F
split-complementary
#2F797F #7F2F51 #7F5D2F
monochromatic
#0E2426 #1E4E52 #2F797F #40A4AC #63BEC5

Accessibility & contrast

On white

5.05
#2F797F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2F797F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F797F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F797F#FFFFFF#000000##FFFFFF
##2F797F1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70747F
Deuteranopia (green-blind)
#646B7F
Tritanopia (blue-blind)
#007E7B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f797f;
/* rgb */ color: rgb(47, 121, 127);
/* oklch */ color: oklch(53.3% 0.073 202.6);
Tailwind
colors: {
  custom: {
    50: '#71a0a4',
    500: '#2f797f',
    950: '#000000',
  },
}
SCSS
$custom: #2f797f;
$custom-light: #71a0a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f797f",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 127
  },
  "hsl": {
    "h": 184.5,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.53285,
    "c": 0.07264,
    "h": 202.6
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#2F797F
secondary
#AC635E
accent
#5C52D6
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #2F797F

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

Preview Lab → · Contrast checker → · Palette generator →

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