#31997C#31997C

#31997C is a mid, moderate teal. Relative luminance 0.249; OKLCH L 61.6% C 0.104 H 170.6°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#31997C
RGBrgb(49, 153, 124)
HSLhsl(163, 51%, 40%)
HSVhsv(163, 68%, 60%)
CMYKcmyk(68%, 0%, 19%, 40%)
CIE-LABlab(56.97, -36.75, 6.68)
CIE-LCHlch(56.97, 37.36, 169.70°)
OKLaboklab(61.59% -0.103 0.017)
OKLCHoklch(61.59% 0.104 170.6)
XYZxyz(16.2941, 24.8889, 23.0102)
Luminance0.2489 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31997C #99314E
analogous
#319948 #31997C #318299
triadic
#31997C #7C3199 #997C31
tetradic
#31997C #483199 #99314E #829931
square
#31997C #483199 #99314E #829931
split-complementary
#31997C #993182 #994831
monochromatic
#133C31 #226B56 #31997C #44C3A0 #72D2B7

Accessibility & contrast

On white

3.51
#31997C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#31997C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31997C
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31997C#FFFFFF#000000##000000
##31997C1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958F7B
Deuteranopia (green-blind)
#86847E
Tritanopia (blue-blind)
#009A91
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #31997c;
/* rgb */ color: rgb(49, 153, 124);
/* oklch */ color: oklch(61.6% 0.104 170.6);
Tailwind
colors: {
  custom: {
    50: '#77b8a1',
    500: '#31997c',
    950: '#000000',
  },
}
SCSS
$custom: #31997c;
$custom-light: #77b8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31997c",
  "rgb": {
    "r": 49,
    "g": 153,
    "b": 124
  },
  "hsl": {
    "h": 163.269,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.61593,
    "c": 0.10443,
    "h": 170.6
  },
  "luminance": 0.24891
}

Semantic roles & 50–950 ramp

primary
#31997C
secondary
#BA6C82
accent
#4D74DB
background
#F7FBF9
surface
#EEF6F2
border
#C9D0CC
text
#0A110F
muted
#7C807E

Preview Lab

Preview with #31997C

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

Preview Lab → · Contrast checker → · Palette generator →

#31997C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva