#1F8C2F#1F8C2F

#1F8C2F is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.1% C 0.162 H 145.0°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#1F8C2F
RGBrgb(31, 140, 47)
HSLhsl(129, 64%, 34%)
HSVhsv(129, 78%, 55%)
CMYKcmyk(77.9%, 0%, 66.4%, 45.1%)
CIE-LABlab(50.98, -49.13, 40.00)
CIE-LCHlch(50.98, 63.36, 140.85°)
OKLaboklab(56.12% -0.1326 0.0929)
OKLCHoklch(56.12% 0.162 145)
XYZxyz(10.4555, 19.2515, 5.8536)
Luminance0.1925 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8C2F #8C1F7C
analogous
#458C1F #1F8C2F #1F8C65
triadic
#1F8C2F #2F1F8C #8C2F1F
tetradic
#1F8C2F #1F458C #8C1F7C #8C651F
square
#1F8C2F #1F458C #8C1F7C #8C651F
split-complementary
#1F8C2F #651F8C #8C1F45
monochromatic
#09280D #145A1E #1F8C2F #2ABE40 #4ED862

Accessibility & contrast

On white

4.33
#1F8C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#1F8C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8C2F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8C2F#FFFFFF#000000##000000
##1F8C2F1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F24
Deuteranopia (green-blind)
#827637
Tritanopia (blue-blind)
#008879
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f8c2f;
/* rgb */ color: rgb(31, 140, 47);
/* oklch */ color: oklch(56.1% 0.162 145.0);
Tailwind
colors: {
  custom: {
    50: '#6eaf6c',
    500: '#1f8c2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8c2f;
$custom-light: #6eaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8c2f",
  "rgb": {
    "r": 31,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 128.807,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56119,
    "c": 0.16194,
    "h": 145
  },
  "luminance": 0.19253
}

Semantic roles & 50–950 ramp

primary
#1F8C2F
secondary
#BB4CAA
accent
#41CEE7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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