#1F797F#1F797F

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

Color values

HEX#1F797F
RGBrgb(31, 121, 127)
HSLhsl(184, 61%, 31%)
HSVhsv(184, 76%, 50%)
CMYKcmyk(75.6%, 4.7%, 0%, 50.2%)
CIE-LABlab(46.31, -23.21, -10.77)
CIE-LCHlch(46.31, 25.58, 204.89°)
OKLaboklab(52.83% -0.0752 -0.0299)
OKLCHoklch(52.83% 0.081 201.7)
XYZxyz(11.2315, 15.4970, 22.4738)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F797F #7F251F
analogous
#1F7F55 #1F797F #1F497F
triadic
#1F797F #7F1F79 #797F1F
tetradic
#1F797F #551F7F #7F251F #497F1F
square
#1F797F #551F7F #7F251F #497F1F
split-complementary
#1F797F #7F1F49 #7F551F
monochromatic
#071B1D #134A4E #1F797F #2BA8B0 #46C9D2

Accessibility & contrast

On white

5.12
#1F797F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#1F797F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F797F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F797F#FFFFFF#000000##FFFFFF
##1F797F1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F737F
Deuteranopia (green-blind)
#62697F
Tritanopia (blue-blind)
#007E7B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f797f;
/* rgb */ color: rgb(31, 121, 127);
/* oklch */ color: oklch(52.8% 0.081 201.7);
Tailwind
colors: {
  custom: {
    50: '#6ca0a4',
    500: '#1f797f',
    950: '#000000',
  },
}
SCSS
$custom: #1f797f;
$custom-light: #6ca0a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f797f",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 127
  },
  "hsl": {
    "h": 183.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52829,
    "c": 0.08096,
    "h": 201.7
  },
  "luminance": 0.15498
}

Semantic roles & 50–950 ramp

primary
#1F797F
secondary
#B24E48
accent
#4E44E4
background
#F6F9FA
surface
#ECF2F4
border
#C7CCCE
text
#080E0F
muted
#7A7E7F

Preview Lab

Preview with #1F797F

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

Preview Lab → · Contrast checker → · Palette generator →

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