#31978F#31978F

#31978F is a mid, moderate teal. Relative luminance 0.248; OKLCH L 61.7% C 0.093 H 187.6°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#31978F
RGBrgb(49, 151, 143)
HSLhsl(175, 51%, 39%)
HSVhsv(175, 68%, 59%)
CMYKcmyk(67.5%, 0%, 5.3%, 40.8%)
CIE-LABlab(56.85, -30.70, -4.33)
CIE-LCHlch(56.85, 31.00, 188.02°)
OKLaboklab(61.67% -0.0918 -0.0122)
OKLCHoklch(61.67% 0.093 187.6)
XYZxyz(17.2889, 24.7674, 29.8507)
Luminance0.2477 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31978F #973139
analogous
#31975C #31978F #316C97
triadic
#31978F #8F3197 #978F31
tetradic
#31978F #5C3197 #973139 #6C9731
square
#31978F #5C3197 #973139 #6C9731
split-complementary
#31978F #97316C #975C31
monochromatic
#133B37 #226963 #31978F #43C2B8 #71D1CA

Accessibility & contrast

On white

3.53
#31978F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#31978F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31978F
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31978F#FFFFFF#000000##000000
##31978F1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8F8F
Deuteranopia (green-blind)
#808490
Tritanopia (blue-blind)
#009B94
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #31978f;
/* rgb */ color: rgb(49, 151, 143);
/* oklch */ color: oklch(61.7% 0.093 187.6);
Tailwind
colors: {
  custom: {
    50: '#77b6af',
    500: '#31978f',
    950: '#000000',
  },
}
SCSS
$custom: #31978f;
$custom-light: #77b6af;
$custom-dark: #000000;
JSON
{
  "hex": "#31978f",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 143
  },
  "hsl": {
    "h": 175.294,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61668,
    "c": 0.09259,
    "h": 187.6
  },
  "luminance": 0.24769
}

Semantic roles & 50–950 ramp

primary
#31978F
secondary
#B96B71
accent
#4D58DA
background
#F7FBFA
surface
#EEF6F4
border
#C9D0CE
text
#0A1110
muted
#7C807F

Preview Lab

Preview with #31978F

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

Preview Lab → · Contrast checker → · Palette generator →

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