#31796A#31796A

#31796A is a mid, moderate teal. Relative luminance 0.154; OKLCH L 52.6% C 0.076 H 177.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#31796A
RGBrgb(49, 121, 106)
HSLhsl(168, 42%, 33%)
HSVhsv(168, 60%, 47%)
CMYKcmyk(59.5%, 0%, 12.4%, 52.5%)
CIE-LABlab(46.13, -26.36, 1.51)
CIE-LCHlch(46.13, 26.40, 176.72°)
OKLaboklab(52.61% -0.0758 0.0036)
OKLCHoklch(52.61% 0.076 177.3)
XYZxyz(10.7043, 15.3673, 16.0349)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31796A #793140
analogous
#317946 #31796A #316479
triadic
#31796A #6A3179 #796A31
tetradic
#31796A #463179 #793140 #647931
square
#31796A #463179 #793140 #647931
split-complementary
#31796A #793164 #794631
monochromatic
#0E221E #1F4D44 #31796A #43A590 #64C0AD

Accessibility & contrast

On white

5.16
#31796A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#31796A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31796A
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31796A#FFFFFF#000000##FFFFFF
##31796A1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#757269
Deuteranopia (green-blind)
#6A6A6B
Tritanopia (blue-blind)
#007B74
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #31796a;
/* rgb */ color: rgb(49, 121, 106);
/* oklch */ color: oklch(52.6% 0.076 177.3);
Tailwind
colors: {
  custom: {
    50: '#71a094',
    500: '#31796a',
    950: '#000000',
  },
}
SCSS
$custom: #31796a;
$custom-light: #71a094;
$custom-dark: #000000;
JSON
{
  "hex": "#31796a",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 106
  },
  "hsl": {
    "h": 167.5,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52607,
    "c": 0.07586,
    "h": 177.3
  },
  "luminance": 0.15368
}

Semantic roles & 50–950 ramp

primary
#31796A
secondary
#A85E6D
accent
#5670D2
background
#F7F9F9
surface
#EDF2F1
border
#C8CCCB
text
#080E0D
muted
#7B7E7E

Preview Lab

Preview with #31796A

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

Preview Lab → · Contrast checker → · Palette generator →

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