#1F7936#1F7936

#1F7936 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.131 H 147.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#1F7936
RGBrgb(31, 121, 54)
HSLhsl(135, 59%, 30%)
HSVhsv(135, 74%, 47%)
CMYKcmyk(74.4%, 0%, 55.4%, 52.5%)
CIE-LABlab(44.56, -41.31, 29.12)
CIE-LCHlch(44.56, 50.54, 144.82°)
OKLaboklab(50.83% -0.1112 0.07)
OKLCHoklch(50.83% 0.131 147.8)
XYZxyz(8.0677, 14.2315, 5.8111)
Luminance0.1423 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7936 #791F62
analogous
#35791F #1F7936 #1F7963
triadic
#1F7936 #361F79 #79361F
tetradic
#1F7936 #1F3579 #791F62 #79631F
square
#1F7936 #1F3579 #791F62 #79631F
split-complementary
#1F7936 #631F79 #791F35
monochromatic
#06180B #134820 #1F7936 #2BAA4C #43CF67

Accessibility & contrast

On white

5.46
#1F7936 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7936
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7936#FFFFFF#000000##FFFFFF
##1F79361.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E30
Deuteranopia (green-blind)
#70663B
Tritanopia (blue-blind)
#00766A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7936;
/* rgb */ color: rgb(31, 121, 54);
/* oklch */ color: oklch(50.8% 0.131 147.8);
Tailwind
colors: {
  custom: {
    50: '#69a16f',
    500: '#1f7936',
    950: '#000000',
  },
}
SCSS
$custom: #1f7936;
$custom-light: #69a16f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7936",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 54
  },
  "hsl": {
    "h": 135.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50826,
    "c": 0.13141,
    "h": 147.8
  },
  "luminance": 0.14232
}

Semantic roles & 50–950 ramp

primary
#1F7936
secondary
#AC4793
accent
#45BAE2
background
#F6FAF6
surface
#ECF3EC
border
#C7CDC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7936

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

Preview Lab → · Contrast checker → · Palette generator →

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