#31786F#31786F

#31786F is a mid, moderate teal. Relative luminance 0.152; OKLCH L 52.5% C 0.072 H 184.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#31786F
RGBrgb(49, 120, 111)
HSLhsl(172, 42%, 33%)
HSVhsv(172, 59%, 47%)
CMYKcmyk(59.2%, 0%, 7.5%, 52.9%)
CIE-LABlab(45.95, -24.47, -1.73)
CIE-LCHlch(45.95, 24.53, 184.04°)
OKLaboklab(52.51% -0.0722 -0.005)
OKLCHoklch(52.51% 0.072 184)
XYZxyz(10.8511, 15.2325, 17.4042)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31786F #78313A
analogous
#31784B #31786F #315D78
triadic
#31786F #6F3178 #786F31
tetradic
#31786F #4B3178 #78313A #5D7831
square
#31786F #4B3178 #78313A #5D7831
split-complementary
#31786F #78315D #784B31
monochromatic
#0E211F #1F4D47 #31786F #43A397 #64C0B4

Accessibility & contrast

On white

5.19
#31786F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#31786F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31786F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31786F#FFFFFF#000000##FFFFFF
##31786F1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72726F
Deuteranopia (green-blind)
#676970
Tritanopia (blue-blind)
#007A75
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #31786f;
/* rgb */ color: rgb(49, 120, 111);
/* oklch */ color: oklch(52.5% 0.072 184.0);
Tailwind
colors: {
  custom: {
    50: '#719f98',
    500: '#31786f',
    950: '#000000',
  },
}
SCSS
$custom: #31786f;
$custom-light: #719f98;
$custom-dark: #000000;
JSON
{
  "hex": "#31786f",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 111
  },
  "hsl": {
    "h": 172.394,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52507,
    "c": 0.07233,
    "h": 184
  },
  "luminance": 0.15234
}

Semantic roles & 50–950 ramp

primary
#31786F
secondary
#A75E67
accent
#5666D2
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0D
muted
#7B7E7E

Preview Lab

Preview with #31786F

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

Preview Lab → · Contrast checker → · Palette generator →

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