#2F796B#2F796B

#2F796B is a mid, moderate teal. Relative luminance 0.153; OKLCH L 52.6% C 0.077 H 178.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2F796B
RGBrgb(47, 121, 107)
HSLhsl(169, 44%, 33%)
HSVhsv(169, 61%, 47%)
CMYKcmyk(61.2%, 0%, 11.6%, 52.5%)
CIE-LABlab(46.10, -26.51, 0.85)
CIE-LCHlch(46.10, 26.52, 178.16°)
OKLaboklab(52.57% -0.0766 0.0018)
OKLCHoklch(52.57% 0.077 178.6)
XYZxyz(10.6623, 15.3395, 16.3060)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F796B #792F3D
analogous
#2F7946 #2F796B #2F6279
triadic
#2F796B #6B2F79 #796B2F
tetradic
#2F796B #462F79 #792F3D #62792F
square
#2F796B #462F79 #792F3D #62792F
split-complementary
#2F796B #792F62 #79462F
monochromatic
#0D211D #1E4D44 #2F796B #40A592 #61C2AF

Accessibility & contrast

On white

5.16
#2F796B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2F796B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F796B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F796B#FFFFFF#000000##FFFFFF
##2F796B1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74726A
Deuteranopia (green-blind)
#696A6C
Tritanopia (blue-blind)
#007B75
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f796b;
/* rgb */ color: rgb(47, 121, 107);
/* oklch */ color: oklch(52.6% 0.077 178.6);
Tailwind
colors: {
  custom: {
    50: '#70a095',
    500: '#2f796b',
    950: '#000000',
  },
}
SCSS
$custom: #2f796b;
$custom-light: #70a095;
$custom-dark: #000000;
JSON
{
  "hex": "#2f796b",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 107
  },
  "hsl": {
    "h": 168.649,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52568,
    "c": 0.07657,
    "h": 178.6
  },
  "luminance": 0.15341
}

Semantic roles & 50–950 ramp

primary
#2F796B
secondary
#A85B6A
accent
#546CD4
background
#F7F9F9
surface
#EDF2F1
border
#C8CCCB
text
#080E0D
muted
#7B7E7E

Preview Lab

Preview with #2F796B

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

Preview Lab → · Contrast checker → · Palette generator →

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