#31877A#31877A

#31877A is a mid, moderate teal. Relative luminance 0.194; OKLCH L 56.8% C 0.084 H 181.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#31877A
RGBrgb(49, 135, 122)
HSLhsl(171, 47%, 36%)
HSVhsv(171, 64%, 53%)
CMYKcmyk(63.7%, 0%, 9.6%, 47.1%)
CIE-LABlab(51.13, -28.87, -0.61)
CIE-LCHlch(51.13, 28.88, 181.21°)
OKLaboklab(56.82% -0.0842 -0.0021)
OKLCHoklch(56.82% 0.084 181.4)
XYZxyz(13.4418, 19.3846, 21.4418)
Luminance0.1939 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31877A #87313E
analogous
#31874F #31877A #316987
triadic
#31877A #7A3187 #877A31
tetradic
#31877A #4F3187 #87313E #698731
square
#31877A #4F3187 #87313E #698731
split-complementary
#31877A #873169 #874F31
monochromatic
#102D29 #215A51 #31877A #41B4A3 #6AC9BA

Accessibility & contrast

On white

4.31
#31877A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#31877A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31877A
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31877A#FFFFFF#000000##000000
##31877A1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#817F7A
Deuteranopia (green-blind)
#74767B
Tritanopia (blue-blind)
#008983
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #31877a;
/* rgb */ color: rgb(49, 135, 122);
/* oklch */ color: oklch(56.8% 0.084 181.4);
Tailwind
colors: {
  custom: {
    50: '#74aaa0',
    500: '#31877a',
    950: '#000000',
  },
}
SCSS
$custom: #31877a;
$custom-light: #74aaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#31877a",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 122
  },
  "hsl": {
    "h": 170.93,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.56821,
    "c": 0.08419,
    "h": 181.4
  },
  "luminance": 0.19386
}

Semantic roles & 50–950 ramp

primary
#31877A
secondary
#B0646F
accent
#5166D6
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #31877A

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

Preview Lab → · Contrast checker → · Palette generator →

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