#1F8342#1F8342

#1F8342 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.9% C 0.134 H 150.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#1F8342
RGBrgb(31, 131, 66)
HSLhsl(141, 62%, 32%)
HSVhsv(141, 76%, 51%)
CMYKcmyk(76.3%, 0%, 49.6%, 48.6%)
CIE-LABlab(48.15, -43.16, 27.16)
CIE-LCHlch(48.15, 50.99, 147.82°)
OKLaboklab(53.85% -0.1161 0.0663)
OKLCHoklch(53.85% 0.134 150.3)
XYZxyz(9.6639, 16.9161, 7.9090)
Luminance0.1692 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8342 #831F60
analogous
#2E831F #1F8342 #1F8374
triadic
#1F8342 #421F83 #83421F
tetradic
#1F8342 #1F2E83 #831F60 #83741F
square
#1F8342 #1F2E83 #831F60 #83741F
split-complementary
#1F8342 #741F83 #831F2E
monochromatic
#082010 #135229 #1F8342 #2BB45B #49D479

Accessibility & contrast

On white

4.79
#1F8342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#1F8342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8342
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8342#FFFFFF#000000##FFFFFF
##1F83421.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84773D
Deuteranopia (green-blind)
#786F47
Tritanopia (blue-blind)
#008174
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f8342;
/* rgb */ color: rgb(31, 131, 66);
/* oklch */ color: oklch(53.9% 0.134 150.3);
Tailwind
colors: {
  custom: {
    50: '#6ba877',
    500: '#1f8342',
    950: '#000000',
  },
}
SCSS
$custom: #1f8342;
$custom-light: #6ba877;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8342",
  "rgb": {
    "r": 31,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 141,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53851,
    "c": 0.13364,
    "h": 150.3
  },
  "luminance": 0.16917
}

Semantic roles & 50–950 ramp

primary
#1F8342
secondary
#B6488F
accent
#43ACE5
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081009
muted
#7A7F7B

Preview Lab

Preview with #1F8342

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

Preview Lab → · Contrast checker → · Palette generator →

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