#1F795B#1F795B

#1F795B is a mid, moderate teal. Relative luminance 0.147; OKLCH L 51.6% C 0.096 H 166.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#1F795B
RGBrgb(31, 121, 91)
HSLhsl(160, 59%, 30%)
HSVhsv(160, 74%, 47%)
CMYKcmyk(74.4%, 0%, 24.8%, 52.5%)
CIE-LABlab(45.25, -33.69, 9.06)
CIE-LCHlch(45.25, 34.88, 164.95°)
OKLaboklab(51.62% -0.093 0.0232)
OKLCHoklch(51.62% 0.096 166)
XYZxyz(9.2897, 14.7203, 12.2472)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F795B #791F3D
analogous
#1F792E #1F795B #1F6A79
triadic
#1F795B #5B1F79 #795B1F
tetradic
#1F795B #2E1F79 #791F3D #6A791F
square
#1F795B #2E1F79 #791F3D #6A791F
split-complementary
#1F795B #791F6A #792E1F
monochromatic
#061812 #134836 #1F795B #2BAA80 #43CFA0

Accessibility & contrast

On white

5.32
#1F795B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#1F795B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F795B
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F795B#FFFFFF#000000##FFFFFF
##1F795B1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#767059
Deuteranopia (green-blind)
#6B685D
Tritanopia (blue-blind)
#007971
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f795b;
/* rgb */ color: rgb(31, 121, 91);
/* oklch */ color: oklch(51.6% 0.096 166.0);
Tailwind
colors: {
  custom: {
    50: '#69a089',
    500: '#1f795b',
    950: '#000000',
  },
}
SCSS
$custom: #1f795b;
$custom-light: #69a089;
$custom-dark: #000000;
JSON
{
  "hex": "#1f795b",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 91
  },
  "hsl": {
    "h": 160,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51616,
    "c": 0.09587,
    "h": 166
  },
  "luminance": 0.14721
}

Semantic roles & 50–950 ramp

primary
#1F795B
secondary
#AC4769
accent
#457AE2
background
#F6F9F8
surface
#ECF2F0
border
#C7CCCB
text
#070F0B
muted
#7A7E7C

Preview Lab

Preview with #1F795B

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

Preview Lab → · Contrast checker → · Palette generator →

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