#31887F#31887F

#31887F is a mid, moderate teal. Relative luminance 0.198; OKLCH L 57.2% C 0.083 H 185.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#31887F
RGBrgb(49, 136, 127)
HSLhsl(174, 47%, 36%)
HSVhsv(174, 64%, 53%)
CMYKcmyk(64%, 0%, 6.6%, 46.7%)
CIE-LABlab(51.60, -27.96, -2.84)
CIE-LCHlch(51.60, 28.10, 185.79°)
OKLaboklab(57.25% -0.0829 -0.0081)
OKLCHoklch(57.25% 0.083 185.6)
XYZxyz(13.8998, 19.7921, 23.1623)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31887F #88313A
analogous
#318854 #31887F #316688
triadic
#31887F #7F3188 #887F31
tetradic
#31887F #543188 #88313A #668831
square
#31887F #543188 #88313A #668831
split-complementary
#31887F #883166 #885431
monochromatic
#112E2B #215B55 #31887F #41B5A9 #6AC9BF

Accessibility & contrast

On white

4.23
#31887F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#31887F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31887F
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31887F#FFFFFF#000000##000000
##31887F1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#81817F
Deuteranopia (green-blind)
#747780
Tritanopia (blue-blind)
#008B85
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #31887f;
/* rgb */ color: rgb(49, 136, 127);
/* oklch */ color: oklch(57.2% 0.083 185.6);
Tailwind
colors: {
  custom: {
    50: '#74aba4',
    500: '#31887f',
    950: '#000000',
  },
}
SCSS
$custom: #31887f;
$custom-light: #74aba4;
$custom-dark: #000000;
JSON
{
  "hex": "#31887f",
  "rgb": {
    "r": 49,
    "g": 136,
    "b": 127
  },
  "hsl": {
    "h": 173.793,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57249,
    "c": 0.08329,
    "h": 185.6
  },
  "luminance": 0.19794
}

Semantic roles & 50–950 ramp

primary
#31887F
secondary
#B1646C
accent
#515FD7
background
#F7FAFA
surface
#EDF4F4
border
#C8CECE
text
#09100F
muted
#7B7F7F

Preview Lab

Preview with #31887F

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

Preview Lab → · Contrast checker → · Palette generator →

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