#1F7939#1F7939

#1F7939 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.129 H 148.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#1F7939
RGBrgb(31, 121, 57)
HSLhsl(137, 59%, 30%)
HSVhsv(137, 74%, 47%)
CMYKcmyk(74.4%, 0%, 52.9%, 52.5%)
CIE-LABlab(44.60, -40.83, 27.57)
CIE-LCHlch(44.60, 49.27, 145.97°)
OKLaboklab(50.87% -0.1099 0.0667)
OKLCHoklch(50.87% 0.129 148.7)
XYZxyz(8.1403, 14.2605, 6.1937)
Luminance0.1426 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7939 #791F5F
analogous
#32791F #1F7939 #1F7966
triadic
#1F7939 #391F79 #79391F
tetradic
#1F7939 #1F3279 #791F5F #79661F
square
#1F7939 #1F3279 #791F5F #79661F
split-complementary
#1F7939 #661F79 #791F32
monochromatic
#06180B #134822 #1F7939 #2BAA50 #43CF6C

Accessibility & contrast

On white

5.45
#1F7939 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#1F7939 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7939
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7939#FFFFFF#000000##FFFFFF
##1F79391.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E34
Deuteranopia (green-blind)
#6F673E
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7939;
/* rgb */ color: rgb(31, 121, 57);
/* oklch */ color: oklch(50.9% 0.129 148.7);
Tailwind
colors: {
  custom: {
    50: '#69a171',
    500: '#1f7939',
    950: '#000000',
  },
}
SCSS
$custom: #1f7939;
$custom-light: #69a171;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7939",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 57
  },
  "hsl": {
    "h": 137.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50874,
    "c": 0.12855,
    "h": 148.7
  },
  "luminance": 0.14261
}

Semantic roles & 50–950 ramp

primary
#1F7939
secondary
#AC478F
accent
#45B5E2
background
#F6FAF6
surface
#ECF3EC
border
#C7CDC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7939

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

Preview Lab → · Contrast checker → · Palette generator →

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