#1F861F#1F861F

#1F861F is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.166 H 142.9°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#1F861F
RGBrgb(31, 134, 31)
HSLhsl(120, 62%, 32%)
HSVhsv(120, 77%, 53%)
CMYKcmyk(76.9%, 0%, 76.9%, 47.5%)
CIE-LABlab(48.81, -48.64, 44.32)
CIE-LCHlch(48.81, 65.81, 137.66°)
OKLaboklab(54.28% -0.132 0.1)
OKLCHoklch(54.28% 0.166 142.9)
XYZxyz(9.3369, 17.4394, 4.1701)
Luminance0.1744 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F861F #861F86
analogous
#53861F #1F861F #1F8653
triadic
#1F861F #1F1F86 #861F1F
tetradic
#1F861F #1F5386 #861F86 #86531F
square
#1F861F #1F5386 #861F86 #86531F
split-complementary
#1F861F #531F86 #861F53
monochromatic
#082308 #145414 #1F861F #2AB82A #4AD54A

Accessibility & contrast

On white

4.68
#1F861F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#1F861F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F861F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F861F#FFFFFF#000000##FFFFFF
##1F861F1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#89790A
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#008272
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f861f;
/* rgb */ color: rgb(31, 134, 31);
/* oklch */ color: oklch(54.3% 0.166 142.9);
Tailwind
colors: {
  custom: {
    50: '#6daa62',
    500: '#1f861f',
    950: '#000000',
  },
}
SCSS
$custom: #1f861f;
$custom-light: #6daa62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f861f",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54275,
    "c": 0.16563,
    "h": 142.9
  },
  "luminance": 0.1744
}

Semantic roles & 50–950 ramp

primary
#1F861F
secondary
#B849B8
accent
#42E5E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F861F

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

Preview Lab → · Contrast checker → · Palette generator →

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