#1F8D1F#1F8D1F

#1F8D1F is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.3% C 0.174 H 142.8°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#1F8D1F
RGBrgb(31, 141, 31)
HSLhsl(120, 64%, 34%)
HSVhsv(120, 78%, 55%)
CMYKcmyk(78%, 0%, 78%, 44.7%)
CIE-LABlab(51.20, -50.98, 46.69)
CIE-LCHlch(51.20, 69.13, 137.51°)
OKLaboklab(56.26% -0.1384 0.1049)
OKLCHoklch(56.26% 0.174 142.8)
XYZxyz(10.3366, 19.4388, 4.5034)
Luminance0.1944 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D1F #8D1F8D
analogous
#568D1F #1F8D1F #1F8D56
triadic
#1F8D1F #1F1F8D #8D1F1F
tetradic
#1F8D1F #1F568D #8D1F8D #8D561F
square
#1F8D1F #1F568D #8D1F8D #8D561F
split-complementary
#1F8D1F #561F8D #8D1F56
monochromatic
#092909 #145B14 #1F8D1F #2ABF2A #4ED84E

Accessibility & contrast

On white

4.30
#1F8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#1F8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D1F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D1F#FFFFFF#000000##000000
##1F8D1F1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d1f;
/* rgb */ color: rgb(31, 141, 31);
/* oklch */ color: oklch(56.3% 0.174 142.8);
Tailwind
colors: {
  custom: {
    50: '#6faf63',
    500: '#1f8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d1f;
$custom-light: #6faf63;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d1f",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56259,
    "c": 0.17366,
    "h": 142.8
  },
  "luminance": 0.1944
}

Semantic roles & 50–950 ramp

primary
#1F8D1F
secondary
#BB4DBB
accent
#41E7E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #1F8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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