#1F796C#1F796C

#1F796C is a mid, moderate teal. Relative luminance 0.150; OKLCH L 52.1% C 0.084 H 181.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#1F796C
RGBrgb(31, 121, 108)
HSLhsl(171, 59%, 30%)
HSVhsv(171, 74%, 47%)
CMYKcmyk(74.4%, 0%, 10.7%, 52.5%)
CIE-LABlab(45.70, -29.06, -0.37)
CIE-LCHlch(45.70, 29.06, 180.73°)
OKLaboklab(52.13% -0.0844 -0.0015)
OKLCHoklch(52.13% 0.084 181)
XYZxyz(10.1079, 15.0476, 16.5562)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F796C #791F2C
analogous
#1F793F #1F796C #1F5979
triadic
#1F796C #6C1F79 #796C1F
tetradic
#1F796C #3F1F79 #791F2C #59791F
square
#1F796C #3F1F79 #791F2C #59791F
split-complementary
#1F796C #791F59 #793F1F
monochromatic
#061816 #134841 #1F796C #2BAA97 #43CFBB

Accessibility & contrast

On white

5.24
#1F796C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F796C
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F796C#FFFFFF#000000##FFFFFF
##1F796C1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f796c;
/* rgb */ color: rgb(31, 121, 108);
/* oklch */ color: oklch(52.1% 0.084 181.0);
Tailwind
colors: {
  custom: {
    50: '#6aa096',
    500: '#1f796c',
    950: '#000000',
  },
}
SCSS
$custom: #1f796c;
$custom-light: #6aa096;
$custom-dark: #000000;
JSON
{
  "hex": "#1f796c",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 108
  },
  "hsl": {
    "h": 171.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52133,
    "c": 0.08438,
    "h": 181
  },
  "luminance": 0.15049
}

Semantic roles & 50–950 ramp

primary
#1F796C
secondary
#AC4756
accent
#455CE2
background
#F6F9F9
surface
#ECF2F1
border
#C7CCCB
text
#070F0D
muted
#7A7E7E

Preview Lab

Preview with #1F796C

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

Preview Lab → · Contrast checker → · Palette generator →

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