#31887E#31887E

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

Color values

HEX#31887E
RGBrgb(49, 136, 126)
HSLhsl(173, 47%, 36%)
HSVhsv(173, 64%, 53%)
CMYKcmyk(64%, 0%, 7.4%, 46.7%)
CIE-LABlab(51.57, -28.24, -2.30)
CIE-LCHlch(51.57, 28.33, 184.65°)
OKLaboklab(57.22% -0.0834 -0.0066)
OKLCHoklch(57.22% 0.084 184.6)
XYZxyz(13.8350, 19.7662, 22.8208)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31887E #88313B
analogous
#318853 #31887E #316788
triadic
#31887E #7E3188 #887E31
tetradic
#31887E #533188 #88313B #678831
square
#31887E #533188 #88313B #678831
split-complementary
#31887E #883167 #885331
monochromatic
#112E2B #215B54 #31887E #41B5A8 #6AC9BE

Accessibility & contrast

On white

4.24
#31887E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#31887E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31887E
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31887E#FFFFFF#000000##000000
##31887E1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31887e;
/* rgb */ color: rgb(49, 136, 126);
/* oklch */ color: oklch(57.2% 0.084 184.6);
Tailwind
colors: {
  custom: {
    50: '#74aba3',
    500: '#31887e',
    950: '#000000',
  },
}
SCSS
$custom: #31887e;
$custom-light: #74aba3;
$custom-dark: #000000;
JSON
{
  "hex": "#31887e",
  "rgb": {
    "r": 49,
    "g": 136,
    "b": 126
  },
  "hsl": {
    "h": 173.103,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57215,
    "c": 0.08362,
    "h": 184.6
  },
  "luminance": 0.19768
}

Semantic roles & 50–950 ramp

primary
#31887E
secondary
#B1646D
accent
#5160D7
background
#F7FAFA
surface
#EDF4F3
border
#C8CECD
text
#09100F
muted
#7B7F7F

Preview Lab

Preview with #31887E

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

Preview Lab → · Contrast checker → · Palette generator →

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