#31B797#31B797

#31B797 is a light, vivid teal. Relative luminance 0.368; OKLCH L 70.1% C 0.122 H 172.7°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#31B797
RGBrgb(49, 183, 151)
HSLhsl(166, 58%, 45%)
HSVhsv(166, 73%, 72%)
CMYKcmyk(73.2%, 0%, 17.5%, 28.2%)
CIE-LABlab(67.09, -43.07, 6.11)
CIE-LCHlch(67.09, 43.50, 171.93°)
OKLaboklab(70.09% -0.1213 0.0155)
OKLCHoklch(70.09% 0.122 172.7)
XYZxyz(23.7831, 36.7515, 35.1125)
Luminance0.3675 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B797 #B73151
analogous
#31B754 #31B797 #3194B7
triadic
#31B797 #9731B7 #B79731
tetradic
#31B797 #5431B7 #B73151 #94B731
square
#31B797 #5431B7 #B73151 #94B731
split-complementary
#31B797 #B73194 #B75431
monochromatic
#175647 #24876F #31B797 #54D1B3 #84DEC9

Accessibility & contrast

On white

2.51
#31B797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#31B797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B797
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B797#FFFFFF#000000##000000
##31B7971.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1AB95
Deuteranopia (green-blind)
#9F9E99
Tritanopia (blue-blind)
#00B9AE
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #31b797;
/* rgb */ color: rgb(49, 183, 151);
/* oklch */ color: oklch(70.1% 0.122 172.7);
Tailwind
colors: {
  custom: {
    50: '#7dcdb5',
    500: '#31b797',
    950: '#000000',
  },
}
SCSS
$custom: #31b797;
$custom-light: #7dcdb5;
$custom-dark: #000000;
JSON
{
  "hex": "#31b797",
  "rgb": {
    "r": 49,
    "g": 183,
    "b": 151
  },
  "hsl": {
    "h": 165.672,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70093,
    "c": 0.12228,
    "h": 172.7
  },
  "luminance": 0.36754
}

Semantic roles & 50–950 ramp

primary
#31B797
secondary
#C87C8E
accent
#476CE1
background
#F8FCFB
surface
#EFF9F6
border
#CAD2D0
text
#0B1311
muted
#7C8280

Preview Lab

Preview with #31B797

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

Preview Lab → · Contrast checker → · Palette generator →

#31B797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva