#1F8D2F#1F8D2F

#1F8D2F is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.163 H 144.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#1F8D2F
RGBrgb(31, 141, 47)
HSLhsl(129, 64%, 34%)
HSVhsv(129, 78%, 55%)
CMYKcmyk(78%, 0%, 66.7%, 44.7%)
CIE-LABlab(51.32, -49.48, 40.37)
CIE-LCHlch(51.32, 63.86, 140.79°)
OKLaboklab(56.4% -0.1336 0.0937)
OKLCHoklch(56.4% 0.163 144.9)
XYZxyz(10.6023, 19.5451, 5.9026)
Luminance0.1955 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D2F #8D1F7D
analogous
#468D1F #1F8D2F #1F8D66
triadic
#1F8D2F #2F1F8D #8D2F1F
tetradic
#1F8D2F #1F468D #8D1F7D #8D661F
square
#1F8D2F #1F468D #8D1F7D #8D661F
split-complementary
#1F8D2F #661F8D #8D1F46
monochromatic
#09290E #145B1E #1F8D2F #2ABF40 #4ED862

Accessibility & contrast

On white

4.28
#1F8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#1F8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D2F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D2F#FFFFFF#000000##000000
##1F8D2F1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F23
Deuteranopia (green-blind)
#837737
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d2f;
/* rgb */ color: rgb(31, 141, 47);
/* oklch */ color: oklch(56.4% 0.163 144.9);
Tailwind
colors: {
  custom: {
    50: '#6eaf6c',
    500: '#1f8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d2f;
$custom-light: #6eaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d2f",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 128.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.564,
    "c": 0.16316,
    "h": 144.9
  },
  "luminance": 0.19546
}

Semantic roles & 50–950 ramp

primary
#1F8D2F
secondary
#BB4DAB
accent
#41CFE7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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