#31785E#31785E

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

Color values

HEX#31785E
RGBrgb(49, 120, 94)
HSLhsl(158, 42%, 33%)
HSVhsv(158, 59%, 47%)
CMYKcmyk(59.2%, 0%, 21.7%, 52.9%)
CIE-LABlab(45.49, -28.97, 7.70)
CIE-LCHlch(45.49, 29.97, 165.12°)
OKLaboklab(51.98% -0.0806 0.0197)
OKLCHoklch(51.98% 0.083 166.3)
XYZxyz(10.0025, 14.8931, 12.9350)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31785E #78314B
analogous
#31783A #31785E #316E78
triadic
#31785E #5E3178 #785E31
tetradic
#31785E #3A3178 #78314B #6E7831
square
#31785E #3A3178 #78314B #6E7831
split-complementary
#31785E #78316E #783A31
monochromatic
#0E211A #1F4D3C #31785E #43A380 #64C09E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31785E#FFFFFF#000000##FFFFFF
##31785E1.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)
#75705D
Deuteranopia (green-blind)
#6B6960
Tritanopia (blue-blind)
#0D7871
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31785e;
/* rgb */ color: rgb(49, 120, 94);
/* oklch */ color: oklch(52.0% 0.083 166.3);
Tailwind
colors: {
  custom: {
    50: '#709f8b',
    500: '#31785e',
    950: '#000000',
  },
}
SCSS
$custom: #31785e;
$custom-light: #709f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#31785e",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 94
  },
  "hsl": {
    "h": 158.028,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.51977,
    "c": 0.08298,
    "h": 166.3
  },
  "luminance": 0.14894
}

Semantic roles & 50–950 ramp

primary
#31785E
secondary
#A75E79
accent
#5683D2
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080E0C
muted
#7B7E7D

Preview Lab

Preview with #31785E

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

Preview Lab → · Contrast checker → · Palette generator →

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