#1F7940#1F7940

#1F7940 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.122 H 151.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#1F7940
RGBrgb(31, 121, 64)
HSLhsl(142, 59%, 30%)
HSVhsv(142, 74%, 47%)
CMYKcmyk(74.4%, 0%, 47.1%, 52.5%)
CIE-LABlab(44.71, -39.61, 23.88)
CIE-LCHlch(44.71, 46.25, 148.92°)
OKLaboklab(51% -0.1066 0.0587)
OKLCHoklch(51% 0.122 151.2)
XYZxyz(8.3272, 14.3353, 7.1776)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7940 #791F58
analogous
#2B791F #1F7940 #1F796D
triadic
#1F7940 #401F79 #79401F
tetradic
#1F7940 #1F2B79 #791F58 #796D1F
square
#1F7940 #1F2B79 #791F58 #796D1F
split-complementary
#1F7940 #6D1F79 #791F2B
monochromatic
#06180D #134826 #1F7940 #2BAA5A #43CF77

Accessibility & contrast

On white

5.43
#1F7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#1F7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7940
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7940#FFFFFF#000000##FFFFFF
##1F79401.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#00776B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7940;
/* rgb */ color: rgb(31, 121, 64);
/* oklch */ color: oklch(51.0% 0.122 151.2);
Tailwind
colors: {
  custom: {
    50: '#69a176',
    500: '#1f7940',
    950: '#000000',
  },
}
SCSS
$custom: #1f7940;
$custom-light: #69a176;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7940",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 142,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50995,
    "c": 0.1217,
    "h": 151.2
  },
  "luminance": 0.14336
}

Semantic roles & 50–950 ramp

primary
#1F7940
secondary
#AC4787
accent
#45A9E2
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7940

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

Preview Lab → · Contrast checker → · Palette generator →

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