#31987A#31987A

#31987A is a mid, moderate teal. Relative luminance 0.245; OKLCH L 61.3% C 0.105 H 169.8°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#31987A
RGBrgb(49, 152, 122)
HSLhsl(163, 51%, 39%)
HSVhsv(163, 68%, 60%)
CMYKcmyk(67.8%, 0%, 19.7%, 40.4%)
CIE-LABlab(56.60, -36.81, 7.28)
CIE-LCHlch(56.60, 37.52, 168.81°)
OKLaboklab(61.28% -0.1029 0.0186)
OKLCHoklch(61.28% 0.105 169.8)
XYZxyz(16.0059, 24.5128, 22.2965)
Luminance0.2452 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31987A #98314F
analogous
#319846 #31987A #318398
triadic
#31987A #7A3198 #987A31
tetradic
#31987A #463198 #98314F #839831
square
#31987A #463198 #98314F #839831
split-complementary
#31987A #983183 #984631
monochromatic
#133B30 #226A55 #31987A #44C39E #72D2B6

Accessibility & contrast

On white

3.56
#31987A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#31987A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31987A
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31987A#FFFFFF#000000##000000
##31987A1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948E79
Deuteranopia (green-blind)
#86847C
Tritanopia (blue-blind)
#00998F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #31987a;
/* rgb */ color: rgb(49, 152, 122);
/* oklch */ color: oklch(61.3% 0.105 169.8);
Tailwind
colors: {
  custom: {
    50: '#76b7a0',
    500: '#31987a',
    950: '#000000',
  },
}
SCSS
$custom: #31987a;
$custom-light: #76b7a0;
$custom-dark: #000000;
JSON
{
  "hex": "#31987a",
  "rgb": {
    "r": 49,
    "g": 152,
    "b": 122
  },
  "hsl": {
    "h": 162.524,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.61275,
    "c": 0.1046,
    "h": 169.8
  },
  "luminance": 0.24515
}

Semantic roles & 50–950 ramp

primary
#31987A
secondary
#B96B82
accent
#4D76DB
background
#F7FBF9
surface
#EEF6F2
border
#C9D0CC
text
#0A110E
muted
#7C807E

Preview Lab

Preview with #31987A

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

Preview Lab → · Contrast checker → · Palette generator →

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