#31785D#31785D

#31785D is a mid, moderate teal. Relative luminance 0.149; OKLCH L 51.9% C 0.084 H 165.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#31785D
RGBrgb(49, 120, 93)
HSLhsl(157, 42%, 33%)
HSVhsv(157, 59%, 47%)
CMYKcmyk(59.2%, 0%, 22.5%, 52.9%)
CIE-LABlab(45.46, -29.22, 8.25)
CIE-LCHlch(45.46, 30.36, 164.23°)
OKLaboklab(51.95% -0.0811 0.0211)
OKLCHoklch(51.95% 0.084 165.4)
XYZxyz(9.9579, 14.8753, 12.7002)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31785D #78314C
analogous
#317839 #31785D #316F78
triadic
#31785D #5D3178 #785D31
tetradic
#31785D #393178 #78314C #6F7831
square
#31785D #393178 #78314C #6F7831
split-complementary
#31785D #78316F #783931
monochromatic
#0E211A #1F4D3B #31785D #43A37F #64C09D

Accessibility & contrast

On white

5.28
#31785D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#31785D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31785D
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31785D#FFFFFF#000000##FFFFFF
##31785D1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76705C
Deuteranopia (green-blind)
#6B695F
Tritanopia (blue-blind)
#0E7870
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31785d;
/* rgb */ color: rgb(49, 120, 93);
/* oklch */ color: oklch(51.9% 0.084 165.4);
Tailwind
colors: {
  custom: {
    50: '#709f8b',
    500: '#31785d',
    950: '#000000',
  },
}
SCSS
$custom: #31785d;
$custom-light: #709f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#31785d",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 93
  },
  "hsl": {
    "h": 157.183,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.51949,
    "c": 0.08382,
    "h": 165.4
  },
  "luminance": 0.14876
}

Semantic roles & 50–950 ramp

primary
#31785D
secondary
#A75E7A
accent
#5685D2
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080E0B
muted
#7B7E7C

Preview Lab

Preview with #31785D

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

Preview Lab → · Contrast checker → · Palette generator →

#31785D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva