#1F8F2F#1F8F2F

#1F8F2F is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.166 H 144.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#1F8F2F
RGBrgb(31, 143, 47)
HSLhsl(129, 64%, 34%)
HSVhsv(129, 78%, 56%)
CMYKcmyk(78.3%, 0%, 67.1%, 43.9%)
CIE-LABlab(52.00, -50.16, 41.12)
CIE-LCHlch(52.00, 64.86, 140.66°)
OKLaboklab(56.96% -0.1354 0.0953)
OKLCHoklch(56.96% 0.166 144.9)
XYZxyz(10.8999, 20.1402, 6.0018)
Luminance0.2014 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F2F #8F1F7F
analogous
#478F1F #1F8F2F #1F8F67
triadic
#1F8F2F #2F1F8F #8F2F1F
tetradic
#1F8F2F #1F478F #8F1F7F #8F671F
square
#1F8F2F #1F478F #8F1F7F #8F671F
split-complementary
#1F8F2F #671F8F #8F1F47
monochromatic
#092A0E #145D1E #1F8F2F #2AC140 #4FD963

Accessibility & contrast

On white

4.18
#1F8F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#1F8F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F2F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F2F#FFFFFF#000000##000000
##1F8F2F1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928123
Deuteranopia (green-blind)
#857938
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f2f;
/* rgb */ color: rgb(31, 143, 47);
/* oklch */ color: oklch(57.0% 0.166 144.9);
Tailwind
colors: {
  custom: {
    50: '#6fb16c',
    500: '#1f8f2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f2f;
$custom-light: #6fb16c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f2f",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 128.571,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56962,
    "c": 0.16558,
    "h": 144.9
  },
  "luminance": 0.20141
}

Semantic roles & 50–950 ramp

primary
#1F8F2F
secondary
#BC4EAC
accent
#40D0E7
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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