#31795E#31795E

#31795E is a mid, moderate teal. Relative luminance 0.151; OKLCH L 52.2% C 0.084 H 165.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#31795E
RGBrgb(49, 121, 94)
HSLhsl(158, 42%, 33%)
HSVhsv(158, 60%, 47%)
CMYKcmyk(59.5%, 0%, 22.3%, 52.5%)
CIE-LABlab(45.82, -29.45, 8.16)
CIE-LCHlch(45.82, 30.56, 164.51°)
OKLaboklab(52.25% -0.0818 0.0209)
OKLCHoklch(52.25% 0.084 165.7)
XYZxyz(10.1234, 15.1349, 12.9753)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31795E #79314C
analogous
#31793A #31795E #317079
triadic
#31795E #5E3179 #795E31
tetradic
#31795E #3A3179 #79314C #707931
square
#31795E #3A3179 #79314C #707931
split-complementary
#31795E #793170 #793A31
monochromatic
#0E221A #1F4D3C #31795E #43A580 #64C09E

Accessibility & contrast

On white

5.21
#31795E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#31795E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31795E
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31795E#FFFFFF#000000##FFFFFF
##31795E1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77715D
Deuteranopia (green-blind)
#6C6960
Tritanopia (blue-blind)
#0D7971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31795e;
/* rgb */ color: rgb(49, 121, 94);
/* oklch */ color: oklch(52.2% 0.084 165.7);
Tailwind
colors: {
  custom: {
    50: '#70a08b',
    500: '#31795e',
    950: '#000000',
  },
}
SCSS
$custom: #31795e;
$custom-light: #70a08b;
$custom-dark: #000000;
JSON
{
  "hex": "#31795e",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 94
  },
  "hsl": {
    "h": 157.5,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52247,
    "c": 0.08442,
    "h": 165.7
  },
  "luminance": 0.15136
}

Semantic roles & 50–950 ramp

primary
#31795E
secondary
#A85E7A
accent
#5684D2
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080F0C
muted
#7B7E7D

Preview Lab

Preview with #31795E

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

Preview Lab → · Contrast checker → · Palette generator →

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