#31787F#31787F

#31787F is a mid, moderate teal. Relative luminance 0.156; OKLCH L 53.1% C 0.071 H 204.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#31787F
RGBrgb(49, 120, 127)
HSLhsl(185, 44%, 35%)
HSVhsv(185, 61%, 50%)
CMYKcmyk(61.4%, 5.5%, 0%, 50.2%)
CIE-LABlab(46.47, -19.74, -10.48)
CIE-LCHlch(46.47, 22.35, 207.96°)
OKLaboklab(53.1% -0.0646 -0.029)
OKLCHoklch(53.1% 0.071 204.2)
XYZxyz(11.8123, 15.6170, 22.4664)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31787F #7F3831
analogous
#317F5F #31787F #31517F
triadic
#31787F #7F3178 #787F31
tetradic
#31787F #5F317F #7F3831 #517F31
square
#31787F #5F317F #7F3831 #517F31
split-complementary
#31787F #7F3151 #7F5F31
monochromatic
#0F2527 #204E53 #31787F #42A2AB #66BCC4

Accessibility & contrast

On white

5.09
#31787F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#31787F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31787F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31787F#FFFFFF#000000##FFFFFF
##31787F1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F7380
Deuteranopia (green-blind)
#636A7F
Tritanopia (blue-blind)
#007D7A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #31787f;
/* rgb */ color: rgb(49, 120, 127);
/* oklch */ color: oklch(53.1% 0.071 204.2);
Tailwind
colors: {
  custom: {
    50: '#729fa4',
    500: '#31787f',
    950: '#000000',
  },
}
SCSS
$custom: #31787f;
$custom-light: #729fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#31787f",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 185.385,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.53097,
    "c": 0.07086,
    "h": 204.2
  },
  "luminance": 0.15618
}

Semantic roles & 50–950 ramp

primary
#31787F
secondary
#AB6760
accent
#5F54D4
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #31787F

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

Preview Lab → · Contrast checker → · Palette generator →

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