#1F8940#1F8940

#1F8940 is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.144 H 148.9°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#1F8940
RGBrgb(31, 137, 64)
HSLhsl(139, 63%, 33%)
HSVhsv(139, 77%, 54%)
CMYKcmyk(77.4%, 0%, 53.3%, 46.3%)
CIE-LABlab(50.16, -45.75, 30.72)
CIE-LCHlch(50.16, 55.10, 146.12°)
OKLaboklab(55.5% -0.123 0.0741)
OKLCHoklch(55.5% 0.144 148.9)
XYZxyz(10.4353, 18.5516, 7.8803)
Luminance0.1855 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8940 #891F68
analogous
#33891F #1F8940 #1F8975
triadic
#1F8940 #401F89 #89401F
tetradic
#1F8940 #1F3389 #891F68 #89751F
square
#1F8940 #1F3389 #891F68 #89751F
split-complementary
#1F8940 #751F89 #891F33
monochromatic
#082511 #145729 #1F8940 #2ABB57 #4CD677

Accessibility & contrast

On white

4.46
#1F8940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#1F8940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8940
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8940#FFFFFF#000000##000000
##1F89401.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D3A
Deuteranopia (green-blind)
#7E7445
Tritanopia (blue-blind)
#008678
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8940;
/* rgb */ color: rgb(31, 137, 64);
/* oklch */ color: oklch(55.5% 0.144 148.9);
Tailwind
colors: {
  custom: {
    50: '#6cac76',
    500: '#1f8940',
    950: '#000000',
  },
}
SCSS
$custom: #1f8940;
$custom-light: #6cac76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8940",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 64
  },
  "hsl": {
    "h": 138.679,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.555,
    "c": 0.1436,
    "h": 148.9
  },
  "luminance": 0.18553
}

Semantic roles & 50–950 ramp

primary
#1F8940
secondary
#B94B97
accent
#42B3E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F8940

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

Preview Lab → · Contrast checker → · Palette generator →

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