#1F7978#1F7978

#1F7978 is a mid, moderate teal. Relative luminance 0.153; OKLCH L 52.6% C 0.081 H 193.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#1F7978
RGBrgb(31, 121, 120)
HSLhsl(179, 59%, 30%)
HSVhsv(179, 74%, 47%)
CMYKcmyk(74.4%, 0%, 0.8%, 52.5%)
CIE-LABlab(46.07, -25.44, -6.96)
CIE-LCHlch(46.07, 26.37, 195.31°)
OKLaboklab(52.56% -0.0785 -0.0194)
OKLCHoklch(52.56% 0.081 193.9)
XYZxyz(10.7911, 15.3208, 20.1541)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7978 #791F20
analogous
#1F794B #1F7978 #1F4D79
triadic
#1F7978 #781F79 #79781F
tetradic
#1F7978 #4B1F79 #791F20 #4D791F
square
#1F7978 #4B1F79 #791F20 #4D791F
split-complementary
#1F7978 #791F4D #794B1F
monochromatic
#061818 #134848 #1F7978 #2BAAA8 #43CFCD

Accessibility & contrast

On white

5.17
#1F7978 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#1F7978 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7978
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7978#FFFFFF#000000##FFFFFF
##1F79781.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#717378
Deuteranopia (green-blind)
#646979
Tritanopia (blue-blind)
#007D78
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7978;
/* rgb */ color: rgb(31, 121, 120);
/* oklch */ color: oklch(52.6% 0.081 193.9);
Tailwind
colors: {
  custom: {
    50: '#6ba09e',
    500: '#1f7978',
    950: '#000000',
  },
}
SCSS
$custom: #1f7978;
$custom-light: #6ba09e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7978",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 120
  },
  "hsl": {
    "h": 179.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52559,
    "c": 0.08086,
    "h": 193.9
  },
  "luminance": 0.15322
}

Semantic roles & 50–950 ramp

primary
#1F7978
secondary
#AC4748
accent
#4547E2
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#070E0E
muted
#7A7E7E

Preview Lab

Preview with #1F7978

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

Preview Lab → · Contrast checker → · Palette generator →

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