#31978B#31978B

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

Color values

HEX#31978B
RGBrgb(49, 151, 139)
HSLhsl(173, 51%, 39%)
HSVhsv(173, 68%, 59%)
CMYKcmyk(67.5%, 0%, 7.9%, 40.8%)
CIE-LABlab(56.73, -31.83, -2.21)
CIE-LCHlch(56.73, 31.91, 183.97°)
OKLaboklab(61.53% -0.0937 -0.0065)
OKLCHoklch(61.53% 0.094 184)
XYZxyz(16.9913, 24.6484, 28.2832)
Luminance0.2465 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31978B #97313D
analogous
#319758 #31978B #317097
triadic
#31978B #8B3197 #978B31
tetradic
#31978B #583197 #97313D #709731
square
#31978B #583197 #97313D #709731
split-complementary
#31978B #973170 #975831
monochromatic
#133B36 #226960 #31978B #43C2B3 #71D1C6

Accessibility & contrast

On white

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

On black

5.93
#31978B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31978B
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31978B#FFFFFF#000000##000000
##31978B1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#908E8B
Deuteranopia (green-blind)
#81848C
Tritanopia (blue-blind)
#009A93
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #31978b;
/* rgb */ color: rgb(49, 151, 139);
/* oklch */ color: oklch(61.5% 0.094 184.0);
Tailwind
colors: {
  custom: {
    50: '#77b6ac',
    500: '#31978b',
    950: '#000000',
  },
}
SCSS
$custom: #31978b;
$custom-light: #77b6ac;
$custom-dark: #000000;
JSON
{
  "hex": "#31978b",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 139
  },
  "hsl": {
    "h": 172.941,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61534,
    "c": 0.09388,
    "h": 184
  },
  "luminance": 0.2465
}

Semantic roles & 50–950 ramp

primary
#31978B
secondary
#B96B74
accent
#4D5EDA
background
#F7FBFA
surface
#EEF6F4
border
#C9D0CE
text
#0A1110
muted
#7C807F

Preview Lab

Preview with #31978B

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

Preview Lab → · Contrast checker → · Palette generator →

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