#1F794A#1F794A

#1F794A is a mid, moderate green. Relative luminance 0.145; OKLCH L 51.2% C 0.112 H 155.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#1F794A
RGBrgb(31, 121, 74)
HSLhsl(149, 59%, 30%)
HSVhsv(149, 74%, 47%)
CMYKcmyk(74.4%, 0%, 38.8%, 52.5%)
CIE-LABlab(44.88, -37.64, 18.46)
CIE-LCHlch(44.88, 41.92, 153.87°)
OKLaboklab(51.2% -0.1017 0.0462)
OKLCHoklch(51.2% 0.112 155.6)
XYZxyz(8.6377, 14.4595, 8.8130)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F794A #791F4E
analogous
#21791F #1F794A #1F7977
triadic
#1F794A #4A1F79 #794A1F
tetradic
#1F794A #1F2179 #791F4E #79771F
square
#1F794A #1F2179 #791F4E #79771F
split-complementary
#1F794A #771F79 #791F21
monochromatic
#06180F #13482C #1F794A #2BAA68 #43CF86

Accessibility & contrast

On white

5.40
#1F794A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#1F794A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F794A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F794A#FFFFFF#000000##FFFFFF
##1F794A1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786F47
Deuteranopia (green-blind)
#6D674D
Tritanopia (blue-blind)
#00786D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f794a;
/* rgb */ color: rgb(31, 121, 74);
/* oklch */ color: oklch(51.2% 0.112 155.6);
Tailwind
colors: {
  custom: {
    50: '#68a07d',
    500: '#1f794a',
    950: '#000000',
  },
}
SCSS
$custom: #1f794a;
$custom-light: #68a07d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f794a",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 74
  },
  "hsl": {
    "h": 148.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51197,
    "c": 0.11173,
    "h": 155.6
  },
  "luminance": 0.1446
}

Semantic roles & 50–950 ramp

primary
#1F794A
secondary
#AC477C
accent
#4597E2
background
#F6F9F7
surface
#EBF2EE
border
#C6CCC9
text
#070F09
muted
#7A7E7B

Preview Lab

Preview with #1F794A

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

Preview Lab → · Contrast checker → · Palette generator →

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