#31796F#31796F

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

Color values

HEX#31796F
RGBrgb(49, 121, 111)
HSLhsl(172, 42%, 33%)
HSVhsv(172, 60%, 47%)
CMYKcmyk(59.5%, 0%, 8.3%, 52.5%)
CIE-LABlab(46.28, -24.98, -1.25)
CIE-LCHlch(46.28, 25.01, 182.87°)
OKLaboklab(52.77% -0.0733 -0.0038)
OKLCHoklch(52.77% 0.073 182.9)
XYZxyz(10.9720, 15.4743, 17.4445)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31796F #79313B
analogous
#31794B #31796F #315F79
triadic
#31796F #6F3179 #796F31
tetradic
#31796F #4B3179 #79313B #5F7931
square
#31796F #4B3179 #79313B #5F7931
split-complementary
#31796F #79315F #794B31
monochromatic
#0E221F #1F4D47 #31796F #43A597 #64C0B3

Accessibility & contrast

On white

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

On black

4.10
#31796F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31796F#FFFFFF#000000##FFFFFF
##31796F1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74726F
Deuteranopia (green-blind)
#686A70
Tritanopia (blue-blind)
#007B76
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #31796f;
/* rgb */ color: rgb(49, 121, 111);
/* oklch */ color: oklch(52.8% 0.073 182.9);
Tailwind
colors: {
  custom: {
    50: '#71a098',
    500: '#31796f',
    950: '#000000',
  },
}
SCSS
$custom: #31796f;
$custom-light: #71a098;
$custom-dark: #000000;
JSON
{
  "hex": "#31796f",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 111
  },
  "hsl": {
    "h": 171.667,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52772,
    "c": 0.07343,
    "h": 182.9
  },
  "luminance": 0.15475
}

Semantic roles & 50–950 ramp

primary
#31796F
secondary
#A85E68
accent
#5667D2
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0D
muted
#7B7E7E

Preview Lab

Preview with #31796F

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

Preview Lab → · Contrast checker → · Palette generator →

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