#31797E#31797E

#31797E is a mid, moderate teal. Relative luminance 0.158; OKLCH L 53.3% C 0.071 H 201.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#31797E
RGBrgb(49, 121, 126)
HSLhsl(184, 44%, 34%)
HSVhsv(184, 61%, 49%)
CMYKcmyk(61.1%, 4%, 0%, 50.6%)
CIE-LABlab(46.75, -20.58, -9.45)
CIE-LCHlch(46.75, 22.65, 204.67°)
OKLaboklab(53.32% -0.0663 -0.0262)
OKLCHoklch(53.32% 0.071 201.5)
XYZxyz(11.8683, 15.8329, 22.1652)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31797E #7E3631
analogous
#317E5D #31797E #31537E
triadic
#31797E #7E3179 #797E31
tetradic
#31797E #5D317E #7E3631 #537E31
square
#31797E #5D317E #7E3631 #537E31
split-complementary
#31797E #7E3153 #7E5D31
monochromatic
#0F2426 #204F52 #31797E #42A3AA #66BDC3

Accessibility & contrast

On white

5.04
#31797E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#31797E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31797E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31797E#FFFFFF#000000##FFFFFF
##31797E1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70747E
Deuteranopia (green-blind)
#646B7E
Tritanopia (blue-blind)
#007D7A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #31797e;
/* rgb */ color: rgb(49, 121, 126);
/* oklch */ color: oklch(53.3% 0.071 201.5);
Tailwind
colors: {
  custom: {
    50: '#72a0a3',
    500: '#31797e',
    950: '#000000',
  },
}
SCSS
$custom: #31797e;
$custom-light: #72a0a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31797e",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 126
  },
  "hsl": {
    "h": 183.896,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.53316,
    "c": 0.07124,
    "h": 201.5
  },
  "luminance": 0.15834
}

Semantic roles & 50–950 ramp

primary
#31797E
secondary
#AB6560
accent
#5C54D4
background
#F7F9FA
surface
#EDF2F3
border
#C8CCCD
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #31797E

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

Preview Lab → · Contrast checker → · Palette generator →

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