#1F796D#1F796D

#1F796D is a mid, moderate teal. Relative luminance 0.151; OKLCH L 52.2% C 0.084 H 182.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#1F796D
RGBrgb(31, 121, 109)
HSLhsl(172, 59%, 30%)
HSVhsv(172, 74%, 47%)
CMYKcmyk(74.4%, 0%, 9.9%, 52.5%)
CIE-LABlab(45.73, -28.77, -0.92)
CIE-LCHlch(45.73, 28.78, 181.84°)
OKLaboklab(52.17% -0.0839 -0.003)
OKLCHoklch(52.17% 0.084 182)
XYZxyz(10.1614, 15.0690, 16.8381)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F796D #791F2B
analogous
#1F7940 #1F796D #1F5879
triadic
#1F796D #6D1F79 #796D1F
tetradic
#1F796D #401F79 #791F2B #58791F
square
#1F796D #401F79 #791F2B #58791F
split-complementary
#1F796D #791F58 #79401F
monochromatic
#061816 #134841 #1F796D #2BAA99 #43CFBC

Accessibility & contrast

On white

5.23
#1F796D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#1F796D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F796D
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F796D#FFFFFF#000000##FFFFFF
##1F796D1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73726D
Deuteranopia (green-blind)
#67686E
Tritanopia (blue-blind)
#007B75
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f796d;
/* rgb */ color: rgb(31, 121, 109);
/* oklch */ color: oklch(52.2% 0.084 182.0);
Tailwind
colors: {
  custom: {
    50: '#6aa096',
    500: '#1f796d',
    950: '#000000',
  },
}
SCSS
$custom: #1f796d;
$custom-light: #6aa096;
$custom-dark: #000000;
JSON
{
  "hex": "#1f796d",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 109
  },
  "hsl": {
    "h": 172,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52167,
    "c": 0.08392,
    "h": 182
  },
  "luminance": 0.1507
}

Semantic roles & 50–950 ramp

primary
#1F796D
secondary
#AC4755
accent
#455AE2
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#070F0D
muted
#7A7E7E

Preview Lab

Preview with #1F796D

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

Preview Lab → · Contrast checker → · Palette generator →

#1F796D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva