#1F8172#1F8172

#1F8172 is a mid, moderate teal. Relative luminance 0.172; OKLCH L 54.5% C 0.090 H 180.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#1F8172
RGBrgb(31, 129, 114)
HSLhsl(171, 61%, 31%)
HSVhsv(171, 76%, 51%)
CMYKcmyk(76%, 0%, 11.6%, 49.4%)
CIE-LABlab(48.52, -31.15, 0.20)
CIE-LCHlch(48.52, 31.15, 179.64°)
OKLaboklab(54.49% -0.09 0)
OKLCHoklch(54.49% 0.09 180)
XYZxyz(11.4511, 17.2054, 18.6338)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8172 #811F2E
analogous
#1F8141 #1F8172 #1F5F81
triadic
#1F8172 #721F81 #81721F
tetradic
#1F8172 #411F81 #811F2E #5F811F
square
#1F8172 #411F81 #811F2E #5F811F
split-complementary
#1F8172 #811F5F #81411F
monochromatic
#071E1B #135046 #1F8172 #2BB29E #47D3BE

Accessibility & contrast

On white

4.73
#1F8172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#1F8172 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8172
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8172#FFFFFF#000000##FFFFFF
##1F81721.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B7971
Deuteranopia (green-blind)
#6E6F73
Tritanopia (blue-blind)
#00837C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f8172;
/* rgb */ color: rgb(31, 129, 114);
/* oklch */ color: oklch(54.5% 0.090 180.0);
Tailwind
colors: {
  custom: {
    50: '#6ca69a',
    500: '#1f8172',
    950: '#000000',
  },
}
SCSS
$custom: #1f8172;
$custom-light: #6ca69a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8172",
  "rgb": {
    "r": 31,
    "g": 129,
    "b": 114
  },
  "hsl": {
    "h": 170.816,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5449,
    "c": 0.09004,
    "h": 180
  },
  "luminance": 0.17207
}

Semantic roles & 50–950 ramp

primary
#1F8172
secondary
#B44858
accent
#435CE4
background
#F6FAF9
surface
#ECF4F2
border
#C7CECC
text
#080F0E
muted
#7A7F7E

Preview Lab

Preview with #1F8172

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

Preview Lab → · Contrast checker → · Palette generator →

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