#31887B#31887B

#31887B is a mid, moderate teal. Relative luminance 0.197; OKLCH L 57.1% C 0.085 H 181.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#31887B
RGBrgb(49, 136, 123)
HSLhsl(171, 47%, 36%)
HSVhsv(171, 64%, 53%)
CMYKcmyk(64%, 0%, 9.6%, 46.7%)
CIE-LABlab(51.48, -29.08, -0.68)
CIE-LCHlch(51.48, 29.09, 181.34°)
OKLaboklab(57.12% -0.0848 -0.0023)
OKLCHoklch(57.12% 0.085 181.6)
XYZxyz(13.6443, 19.6899, 21.8165)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31887B #88313E
analogous
#318850 #31887B #316A88
triadic
#31887B #7B3188 #887B31
tetradic
#31887B #503188 #88313E #6A8831
square
#31887B #503188 #88313E #6A8831
split-complementary
#31887B #88316A #885031
monochromatic
#112E2A #215B52 #31887B #41B5A4 #6AC9BB

Accessibility & contrast

On white

4.25
#31887B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#31887B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31887B
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31887B#FFFFFF#000000##000000
##31887B1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#82807B
Deuteranopia (green-blind)
#75777C
Tritanopia (blue-blind)
#008A84
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #31887b;
/* rgb */ color: rgb(49, 136, 123);
/* oklch */ color: oklch(57.1% 0.085 181.6);
Tailwind
colors: {
  custom: {
    50: '#74aba1',
    500: '#31887b',
    950: '#000000',
  },
}
SCSS
$custom: #31887b;
$custom-light: #74aba1;
$custom-dark: #000000;
JSON
{
  "hex": "#31887b",
  "rgb": {
    "r": 49,
    "g": 136,
    "b": 123
  },
  "hsl": {
    "h": 171.034,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57116,
    "c": 0.08483,
    "h": 181.6
  },
  "luminance": 0.19691
}

Semantic roles & 50–950 ramp

primary
#31887B
secondary
#B1646F
accent
#5165D7
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #31887B

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

Preview Lab → · Contrast checker → · Palette generator →

#31887B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva