#31A798#31A798

#31A798 is a light, moderate teal. Relative luminance 0.306; OKLCH L 66.1% C 0.105 H 182.8°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#31A798
RGBrgb(49, 167, 152)
HSLhsl(172, 55%, 42%)
HSVhsv(172, 71%, 65%)
CMYKcmyk(70.7%, 0%, 9%, 34.5%)
CIE-LABlab(62.13, -35.70, -1.65)
CIE-LCHlch(62.13, 35.74, 182.64°)
OKLaboklab(66.05% -0.1044 -0.005)
OKLCHoklch(66.05% 0.105 182.8)
XYZxyz(20.7501, 30.5550, 34.5038)
Luminance0.3056 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A798 #A73140
analogous
#31A75D #31A798 #317BA7
triadic
#31A798 #9831A7 #A79831
tetradic
#31A798 #5D31A7 #A73140 #7BA731
square
#31A798 #5D31A7 #A73140 #7BA731
split-complementary
#31A798 #A7317B #A75D31
monochromatic
#154842 #23786D #31A798 #4BCABA #7AD8CC

Accessibility & contrast

On white

2.95
#31A798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#31A798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31A798
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A798#FFFFFF#000000##000000
##31A7981.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F9D97
Deuteranopia (green-blind)
#8E9199
Tritanopia (blue-blind)
#00AAA2
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #31a798;
/* rgb */ color: rgb(49, 167, 152);
/* oklch */ color: oklch(66.1% 0.105 182.8);
Tailwind
colors: {
  custom: {
    50: '#7ac2b6',
    500: '#31a798',
    950: '#000000',
  },
}
SCSS
$custom: #31a798;
$custom-light: #7ac2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#31a798",
  "rgb": {
    "r": 49,
    "g": 167,
    "b": 152
  },
  "hsl": {
    "h": 172.373,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.66051,
    "c": 0.10456,
    "h": 182.8
  },
  "luminance": 0.30557
}

Semantic roles & 50–950 ramp

primary
#31A798
secondary
#C1737D
accent
#4A5DDE
background
#F8FBFB
surface
#EFF7F6
border
#CAD0D0
text
#0B1211
muted
#7C8180

Preview Lab

Preview with #31A798

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

Preview Lab → · Contrast checker → · Palette generator →

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