#1F797D#1F797D

#1F797D is a mid, moderate teal. Relative luminance 0.154; OKLCH L 52.8% C 0.081 H 199.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#1F797D
RGBrgb(31, 121, 125)
HSLhsl(183, 60%, 31%)
HSVhsv(183, 75%, 49%)
CMYKcmyk(75.2%, 3.2%, 0%, 51%)
CIE-LABlab(46.24, -23.85, -9.68)
CIE-LCHlch(46.24, 25.74, 202.10°)
OKLaboklab(52.75% -0.0761 -0.0269)
OKLCHoklch(52.75% 0.081 199.4)
XYZxyz(11.1025, 15.4454, 21.7942)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F797D #7D231F
analogous
#1F7D52 #1F797D #1F4A7D
triadic
#1F797D #7D1F79 #797D1F
tetradic
#1F797D #521F7D #7D231F #4A7D1F
square
#1F797D #521F7D #7D231F #4A7D1F
split-complementary
#1F797D #7D1F4A #7D521F
monochromatic
#071A1B #134A4C #1F797D #2BA8AE #45CBD1

Accessibility & contrast

On white

5.14
#1F797D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#1F797D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F797D
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F797D#FFFFFF#000000##FFFFFF
##1F797D1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70737D
Deuteranopia (green-blind)
#62697D
Tritanopia (blue-blind)
#007E7A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f797d;
/* rgb */ color: rgb(31, 121, 125);
/* oklch */ color: oklch(52.8% 0.081 199.4);
Tailwind
colors: {
  custom: {
    50: '#6ba0a2',
    500: '#1f797d',
    950: '#000000',
  },
}
SCSS
$custom: #1f797d;
$custom-light: #6ba0a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f797d",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 125
  },
  "hsl": {
    "h": 182.553,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5275,
    "c": 0.08076,
    "h": 199.4
  },
  "luminance": 0.15447
}

Semantic roles & 50–950 ramp

primary
#1F797D
secondary
#B04C48
accent
#4B44E3
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#080E0F
muted
#7A7E7E

Preview Lab

Preview with #1F797D

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

Preview Lab → · Contrast checker → · Palette generator →

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