#1F9872#1F9872

#1F9872 is a mid, moderate teal. Relative luminance 0.240; OKLCH L 60.7% C 0.117 H 166.2°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#1F9872
RGBrgb(31, 152, 114)
HSLhsl(161, 66%, 36%)
HSVhsv(161, 80%, 60%)
CMYKcmyk(79.6%, 0%, 25%, 40.4%)
CIE-LABlab(56.05, -41.38, 10.99)
CIE-LCHlch(56.05, 42.82, 165.13°)
OKLaboklab(60.66% -0.1141 0.0281)
OKLCHoklch(60.66% 0.117 166.2)
XYZxyz(14.8288, 23.9609, 19.7597)
Luminance0.2396 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9872 #981F45
analogous
#1F9835 #1F9872 #1F8198
triadic
#1F9872 #721F98 #98721F
tetradic
#1F9872 #351F98 #981F45 #81981F
square
#1F9872 #351F98 #981F45 #81981F
split-complementary
#1F9872 #981F81 #98351F
monochromatic
#0A3226 #15654C #1F9872 #29CB98 #55DCB2

Accessibility & contrast

On white

3.63
#1F9872 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#1F9872 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9872
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9872#FFFFFF#000000##000000
##1F98721.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948D70
Deuteranopia (green-blind)
#868275
Tritanopia (blue-blind)
#00988D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #1f9872;
/* rgb */ color: rgb(31, 152, 114);
/* oklch */ color: oklch(60.7% 0.117 166.2);
Tailwind
colors: {
  custom: {
    50: '#70b79a',
    500: '#1f9872',
    950: '#000000',
  },
}
SCSS
$custom: #1f9872;
$custom-light: #70b79a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9872",
  "rgb": {
    "r": 31,
    "g": 152,
    "b": 114
  },
  "hsl": {
    "h": 161.157,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60659,
    "c": 0.11748,
    "h": 166.2
  },
  "luminance": 0.23963
}

Semantic roles & 50–950 ramp

primary
#1F9872
secondary
#C05375
accent
#3F74E9
background
#F7FBF9
surface
#EDF6F2
border
#C8D0CC
text
#09110E
muted
#7B807E

Preview Lab

Preview with #1F9872

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

Preview Lab → · Contrast checker → · Palette generator →

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