#31795D#31795D

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

Color values

HEX#31795D
RGBrgb(49, 121, 93)
HSLhsl(157, 42%, 33%)
HSVhsv(157, 60%, 47%)
CMYKcmyk(59.5%, 0%, 23.1%, 52.5%)
CIE-LABlab(45.79, -29.69, 8.72)
CIE-LCHlch(45.79, 30.95, 163.64°)
OKLaboklab(52.22% -0.0823 0.0223)
OKLCHoklch(52.22% 0.085 164.8)
XYZxyz(10.0788, 15.1171, 12.7405)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31795D #79314D
analogous
#317939 #31795D #317179
triadic
#31795D #5D3179 #795D31
tetradic
#31795D #393179 #79314D #717931
square
#31795D #393179 #79314D #717931
split-complementary
#31795D #793171 #793931
monochromatic
#0E221A #1F4D3C #31795D #43A57E #64C09C

Accessibility & contrast

On white

5.22
#31795D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#31795D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31795D
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31795D#FFFFFF#000000##FFFFFF
##31795D1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77715C
Deuteranopia (green-blind)
#6C695F
Tritanopia (blue-blind)
#0E7971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31795d;
/* rgb */ color: rgb(49, 121, 93);
/* oklch */ color: oklch(52.2% 0.085 164.8);
Tailwind
colors: {
  custom: {
    50: '#70a08b',
    500: '#31795d',
    950: '#000000',
  },
}
SCSS
$custom: #31795d;
$custom-light: #70a08b;
$custom-dark: #000000;
JSON
{
  "hex": "#31795d",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 93
  },
  "hsl": {
    "h": 156.667,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52219,
    "c": 0.08528,
    "h": 164.8
  },
  "luminance": 0.15118
}

Semantic roles & 50–950 ramp

primary
#31795D
secondary
#A85E7B
accent
#5686D2
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080F0B
muted
#7B7E7C

Preview Lab

Preview with #31795D

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

Preview Lab → · Contrast checker → · Palette generator →

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