#31796E#31796E

#31796E is a mid, moderate teal. Relative luminance 0.155; OKLCH L 52.7% C 0.074 H 181.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#31796E
RGBrgb(49, 121, 110)
HSLhsl(171, 42%, 33%)
HSVhsv(171, 60%, 47%)
CMYKcmyk(59.5%, 0%, 9.1%, 52.5%)
CIE-LABlab(46.25, -25.26, -0.70)
CIE-LCHlch(46.25, 25.27, 181.59°)
OKLaboklab(52.74% -0.0738 -0.0023)
OKLCHoklch(52.74% 0.074 181.8)
XYZxyz(10.9172, 15.4524, 17.1561)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31796E #79313C
analogous
#31794A #31796E #316079
triadic
#31796E #6E3179 #796E31
tetradic
#31796E #4A3179 #79313C #607931
square
#31796E #4A3179 #79313C #607931
split-complementary
#31796E #793160 #794A31
monochromatic
#0E221F #1F4D46 #31796E #43A596 #64C0B2

Accessibility & contrast

On white

5.13
#31796E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#31796E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31796E
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31796E#FFFFFF#000000##FFFFFF
##31796E1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74726E
Deuteranopia (green-blind)
#696A6F
Tritanopia (blue-blind)
#007B76
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #31796e;
/* rgb */ color: rgb(49, 121, 110);
/* oklch */ color: oklch(52.7% 0.074 181.8);
Tailwind
colors: {
  custom: {
    50: '#71a097',
    500: '#31796e',
    950: '#000000',
  },
}
SCSS
$custom: #31796e;
$custom-light: #71a097;
$custom-dark: #000000;
JSON
{
  "hex": "#31796e",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 110
  },
  "hsl": {
    "h": 170.833,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52738,
    "c": 0.07386,
    "h": 181.8
  },
  "luminance": 0.15454
}

Semantic roles & 50–950 ramp

primary
#31796E
secondary
#A85E69
accent
#5669D2
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0D
muted
#7B7E7E

Preview Lab

Preview with #31796E

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

Preview Lab → · Contrast checker → · Palette generator →

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