#31796B#31796B

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

Color values

HEX#31796B
RGBrgb(49, 121, 107)
HSLhsl(168, 42%, 33%)
HSVhsv(168, 60%, 47%)
CMYKcmyk(59.5%, 0%, 11.6%, 52.5%)
CIE-LABlab(46.16, -26.09, 0.96)
CIE-LCHlch(46.16, 26.10, 177.90°)
OKLaboklab(52.64% -0.0753 0.0021)
OKLCHoklch(52.64% 0.075 178.4)
XYZxyz(10.7566, 15.3882, 16.3104)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31796B #79313F
analogous
#317947 #31796B #316379
triadic
#31796B #6B3179 #796B31
tetradic
#31796B #473179 #79313F #637931
square
#31796B #473179 #79313F #637931
split-complementary
#31796B #793163 #794731
monochromatic
#0E221E #1F4D44 #31796B #43A592 #64C0AE

Accessibility & contrast

On white

5.15
#31796B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#31796B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31796B
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31796B#FFFFFF#000000##FFFFFF
##31796B1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74726A
Deuteranopia (green-blind)
#696A6C
Tritanopia (blue-blind)
#007B75
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #31796b;
/* rgb */ color: rgb(49, 121, 107);
/* oklch */ color: oklch(52.6% 0.075 178.4);
Tailwind
colors: {
  custom: {
    50: '#71a095',
    500: '#31796b',
    950: '#000000',
  },
}
SCSS
$custom: #31796b;
$custom-light: #71a095;
$custom-dark: #000000;
JSON
{
  "hex": "#31796b",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 107
  },
  "hsl": {
    "h": 168.333,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52639,
    "c": 0.07532,
    "h": 178.4
  },
  "luminance": 0.15389
}

Semantic roles & 50–950 ramp

primary
#31796B
secondary
#A85E6C
accent
#566ED2
background
#F7F9F9
surface
#EDF2F1
border
#C8CCCB
text
#080E0D
muted
#7B7E7E

Preview Lab

Preview with #31796B

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

Preview Lab → · Contrast checker → · Palette generator →

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