#31795F#31795F

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

Color values

HEX#31795F
RGBrgb(49, 121, 95)
HSLhsl(158, 42%, 33%)
HSVhsv(158, 60%, 47%)
CMYKcmyk(59.5%, 0%, 21.5%, 52.5%)
CIE-LABlab(45.84, -29.20, 7.61)
CIE-LCHlch(45.84, 30.18, 165.40°)
OKLaboklab(52.28% -0.0813 0.0195)
OKLCHoklch(52.28% 0.084 166.5)
XYZxyz(10.1686, 15.1530, 13.2132)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31795F #79314B
analogous
#31793B #31795F #316F79
triadic
#31795F #5F3179 #795F31
tetradic
#31795F #3B3179 #79314B #6F7931
square
#31795F #3B3179 #79314B #6F7931
split-complementary
#31795F #79316F #793B31
monochromatic
#0E221B #1F4D3D #31795F #43A581 #64C09F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31795F#FFFFFF#000000##FFFFFF
##31795F1.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)
#76715E
Deuteranopia (green-blind)
#6C6961
Tritanopia (blue-blind)
#0B7972
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #31795f;
/* rgb */ color: rgb(49, 121, 95);
/* oklch */ color: oklch(52.3% 0.084 166.5);
Tailwind
colors: {
  custom: {
    50: '#70a08c',
    500: '#31795f',
    950: '#000000',
  },
}
SCSS
$custom: #31795f;
$custom-light: #70a08c;
$custom-dark: #000000;
JSON
{
  "hex": "#31795f",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 95
  },
  "hsl": {
    "h": 158.333,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52275,
    "c": 0.0836,
    "h": 166.5
  },
  "luminance": 0.15154
}

Semantic roles & 50–950 ramp

primary
#31795F
secondary
#A85E79
accent
#5683D2
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080F0C
muted
#7B7E7D

Preview Lab

Preview with #31795F

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

Preview Lab → · Contrast checker → · Palette generator →

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