#1F8978#1F8978

#1F8978 is a mid, moderate teal. Relative luminance 0.195; OKLCH L 56.8% C 0.096 H 179.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#1F8978
RGBrgb(31, 137, 120)
HSLhsl(170, 63%, 33%)
HSVhsv(170, 77%, 54%)
CMYKcmyk(77.4%, 0%, 12.4%, 46.3%)
CIE-LABlab(51.31, -33.18, 0.76)
CIE-LCHlch(51.31, 33.19, 178.69°)
OKLaboklab(56.83% -0.0955 0.0015)
OKLCHoklch(56.83% 0.096 179.1)
XYZxyz(12.8992, 19.5371, 20.8569)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8978 #891F30
analogous
#1F8943 #1F8978 #1F6589
triadic
#1F8978 #781F89 #89781F
tetradic
#1F8978 #431F89 #891F30 #65891F
square
#1F8978 #431F89 #891F30 #65891F
split-complementary
#1F8978 #891F65 #89431F
monochromatic
#082521 #14574C #1F8978 #2ABBA4 #4CD6C0

Accessibility & contrast

On white

4.28
#1F8978 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#1F8978 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8978
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8978#FFFFFF#000000##000000
##1F89781.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#838077
Deuteranopia (green-blind)
#757679
Tritanopia (blue-blind)
#008B84
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8978;
/* rgb */ color: rgb(31, 137, 120);
/* oklch */ color: oklch(56.8% 0.096 179.1);
Tailwind
colors: {
  custom: {
    50: '#6dac9e',
    500: '#1f8978',
    950: '#000000',
  },
}
SCSS
$custom: #1f8978;
$custom-light: #6dac9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8978",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 120
  },
  "hsl": {
    "h": 170.377,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56826,
    "c": 0.09556,
    "h": 179.1
  },
  "luminance": 0.19539
}

Semantic roles & 50–950 ramp

primary
#1F8978
secondary
#B94B5C
accent
#425CE6
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#08100E
muted
#7B7F7E

Preview Lab

Preview with #1F8978

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

Preview Lab → · Contrast checker → · Palette generator →

#1F8978 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva