#31978A#31978A

#31978A is a mid, moderate teal. Relative luminance 0.246; OKLCH L 61.5% C 0.094 H 183.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#31978A
RGBrgb(49, 151, 138)
HSLhsl(172, 51%, 39%)
HSVhsv(172, 68%, 59%)
CMYKcmyk(67.5%, 0%, 8.6%, 40.8%)
CIE-LABlab(56.70, -32.11, -1.68)
CIE-LCHlch(56.70, 32.16, 183.00°)
OKLaboklab(61.5% -0.0941 -0.0051)
OKLCHoklch(61.5% 0.094 183.1)
XYZxyz(16.9185, 24.6193, 27.9002)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31978A #97313E
analogous
#319757 #31978A #317197
triadic
#31978A #8A3197 #978A31
tetradic
#31978A #573197 #97313E #719731
square
#31978A #573197 #97313E #719731
split-complementary
#31978A #973171 #975731
monochromatic
#133B36 #226960 #31978A #43C2B2 #71D1C5

Accessibility & contrast

On white

3.54
#31978A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#31978A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31978A
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31978A#FFFFFF#000000##000000
##31978A1.003.545.925.92
#FFFFFF3.541.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#908E8A
Deuteranopia (green-blind)
#81838B
Tritanopia (blue-blind)
#009A93
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #31978a;
/* rgb */ color: rgb(49, 151, 138);
/* oklch */ color: oklch(61.5% 0.094 183.1);
Tailwind
colors: {
  custom: {
    50: '#77b6ac',
    500: '#31978a',
    950: '#000000',
  },
}
SCSS
$custom: #31978a;
$custom-light: #77b6ac;
$custom-dark: #000000;
JSON
{
  "hex": "#31978a",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 138
  },
  "hsl": {
    "h": 172.353,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61501,
    "c": 0.09427,
    "h": 183.1
  },
  "luminance": 0.24621
}

Semantic roles & 50–950 ramp

primary
#31978A
secondary
#B96B75
accent
#4D5FDA
background
#F7FBFA
surface
#EEF6F4
border
#C9D0CE
text
#0A1110
muted
#7C807F

Preview Lab

Preview with #31978A

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

Preview Lab → · Contrast checker → · Palette generator →

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