#1F796B#1F796B

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

Color values

HEX#1F796B
RGBrgb(31, 121, 107)
HSLhsl(171, 59%, 30%)
HSVhsv(171, 74%, 47%)
CMYKcmyk(74.4%, 0%, 11.6%, 52.5%)
CIE-LABlab(45.67, -29.35, 0.18)
CIE-LCHlch(45.67, 29.35, 179.65°)
OKLaboklab(52.1% -0.0849 0)
OKLCHoklch(52.1% 0.085 180)
XYZxyz(10.0550, 15.0264, 16.2775)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F796B #791F2D
analogous
#1F793E #1F796B #1F5A79
triadic
#1F796B #6B1F79 #796B1F
tetradic
#1F796B #3E1F79 #791F2D #5A791F
square
#1F796B #3E1F79 #791F2D #5A791F
split-complementary
#1F796B #791F5A #793E1F
monochromatic
#061816 #134840 #1F796B #2BAA96 #43CFB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F796B#FFFFFF#000000##FFFFFF
##1F796B1.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)
#74716A
Deuteranopia (green-blind)
#67686C
Tritanopia (blue-blind)
#007B75
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f796b;
/* rgb */ color: rgb(31, 121, 107);
/* oklch */ color: oklch(52.1% 0.085 180.0);
Tailwind
colors: {
  custom: {
    50: '#6aa095',
    500: '#1f796b',
    950: '#000000',
  },
}
SCSS
$custom: #1f796b;
$custom-light: #6aa095;
$custom-dark: #000000;
JSON
{
  "hex": "#1f796b",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 107
  },
  "hsl": {
    "h": 170.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.521,
    "c": 0.08487,
    "h": 180
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#1F796B
secondary
#AC4757
accent
#455EE2
background
#F6F9F9
surface
#ECF2F1
border
#C7CCCB
text
#070F0D
muted
#7A7E7E

Preview Lab

Preview with #1F796B

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

Preview Lab → · Contrast checker → · Palette generator →

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