#31987E#31987E

#31987E is a mid, moderate teal. Relative luminance 0.246; OKLCH L 61.4% C 0.102 H 172.6°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#31987E
RGBrgb(49, 152, 126)
HSLhsl(165, 51%, 39%)
HSVhsv(165, 68%, 60%)
CMYKcmyk(67.8%, 0%, 17.1%, 40.4%)
CIE-LABlab(56.70, -35.79, 5.15)
CIE-LCHlch(56.70, 36.16, 171.81°)
OKLaboklab(61.39% -0.101 0.0131)
OKLCHoklch(61.39% 0.102 172.6)
XYZxyz(16.2589, 24.6140, 23.6287)
Luminance0.2462 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31987E #98314B
analogous
#31984A #31987E #317F98
triadic
#31987E #7E3198 #987E31
tetradic
#31987E #4A3198 #98314B #7F9831
square
#31987E #4A3198 #98314B #7F9831
split-complementary
#31987E #98317F #984A31
monochromatic
#133B31 #226A58 #31987E #44C3A3 #72D2B9

Accessibility & contrast

On white

3.55
#31987E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#31987E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31987E
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31987E#FFFFFF#000000##000000
##31987E1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938E7D
Deuteranopia (green-blind)
#858480
Tritanopia (blue-blind)
#009990
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #31987e;
/* rgb */ color: rgb(49, 152, 126);
/* oklch */ color: oklch(61.4% 0.102 172.6);
Tailwind
colors: {
  custom: {
    50: '#77b7a3',
    500: '#31987e',
    950: '#000000',
  },
}
SCSS
$custom: #31987e;
$custom-light: #77b7a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31987e",
  "rgb": {
    "r": 49,
    "g": 152,
    "b": 126
  },
  "hsl": {
    "h": 164.854,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.6139,
    "c": 0.10182,
    "h": 172.6
  },
  "luminance": 0.24616
}

Semantic roles & 50–950 ramp

primary
#31987E
secondary
#B96B7F
accent
#4D71DB
background
#F7FBFA
surface
#EEF6F3
border
#C9D0CD
text
#0A110F
muted
#7C807F

Preview Lab

Preview with #31987E

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

Preview Lab → · Contrast checker → · Palette generator →

#31987E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva