#31797A#31797A

#31797A is a mid, moderate teal. Relative luminance 0.157; OKLCH L 53.2% C 0.071 H 196.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#31797A
RGBrgb(49, 121, 122)
HSLhsl(181, 43%, 34%)
HSVhsv(181, 60%, 48%)
CMYKcmyk(59.8%, 0.8%, 0%, 52.2%)
CIE-LABlab(46.62, -21.79, -7.28)
CIE-LCHlch(46.62, 22.98, 198.47°)
OKLaboklab(53.16% -0.0681 -0.0202)
OKLCHoklch(53.16% 0.071 196.5)
XYZxyz(11.6153, 15.7317, 20.8330)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31797A #7A3231
analogous
#317A56 #31797A #31547A
triadic
#31797A #7A3179 #797A31
tetradic
#31797A #56317A #7A3231 #547A31
square
#31797A #56317A #7A3231 #547A31
split-complementary
#31797A #7A3154 #7A5631
monochromatic
#0E2223 #1F4E4E #31797A #43A4A6 #64C0C1

Accessibility & contrast

On white

5.06
#31797A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#31797A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31797A
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31797A#FFFFFF#000000##FFFFFF
##31797A1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71747A
Deuteranopia (green-blind)
#656B7B
Tritanopia (blue-blind)
#007D79
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #31797a;
/* rgb */ color: rgb(49, 121, 122);
/* oklch */ color: oklch(53.2% 0.071 196.5);
Tailwind
colors: {
  custom: {
    50: '#72a0a0',
    500: '#31797a',
    950: '#000000',
  },
}
SCSS
$custom: #31797a;
$custom-light: #72a0a0;
$custom-dark: #000000;
JSON
{
  "hex": "#31797a",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 122
  },
  "hsl": {
    "h": 180.822,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53163,
    "c": 0.07102,
    "h": 196.5
  },
  "luminance": 0.15733
}

Semantic roles & 50–950 ramp

primary
#31797A
secondary
#A85F5E
accent
#5755D2
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0E
muted
#7B7E7E

Preview Lab

Preview with #31797A

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

Preview Lab → · Contrast checker → · Palette generator →

#31797A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva