#1F8340#1F8340

#1F8340 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.8% C 0.136 H 149.6°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#1F8340
RGBrgb(31, 131, 64)
HSLhsl(140, 62%, 32%)
HSVhsv(140, 76%, 51%)
CMYKcmyk(76.3%, 0%, 51.1%, 48.6%)
CIE-LABlab(48.12, -43.50, 28.20)
CIE-LCHlch(48.12, 51.84, 147.05°)
OKLaboklab(53.82% -0.117 0.0685)
OKLCHoklch(53.82% 0.136 149.6)
XYZxyz(9.6060, 16.8930, 7.6039)
Luminance0.1689 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8340 #831F62
analogous
#30831F #1F8340 #1F8372
triadic
#1F8340 #401F83 #83401F
tetradic
#1F8340 #1F3083 #831F62 #83721F
square
#1F8340 #1F3083 #831F62 #83721F
split-complementary
#1F8340 #721F83 #831F30
monochromatic
#082010 #135228 #1F8340 #2BB458 #49D477

Accessibility & contrast

On white

4.80
#1F8340 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F8340
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8340#FFFFFF#000000##FFFFFF
##1F83401.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84773A
Deuteranopia (green-blind)
#786F45
Tritanopia (blue-blind)
#008173
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f8340;
/* rgb */ color: rgb(31, 131, 64);
/* oklch */ color: oklch(53.8% 0.136 149.6);
Tailwind
colors: {
  custom: {
    50: '#6ba876',
    500: '#1f8340',
    950: '#000000',
  },
}
SCSS
$custom: #1f8340;
$custom-light: #6ba876;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8340",
  "rgb": {
    "r": 31,
    "g": 131,
    "b": 64
  },
  "hsl": {
    "h": 139.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53818,
    "c": 0.13555,
    "h": 149.6
  },
  "luminance": 0.16894
}

Semantic roles & 50–950 ramp

primary
#1F8340
secondary
#B64892
accent
#43AFE5
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081008
muted
#7A7F7B

Preview Lab

Preview with #1F8340

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

Preview Lab → · Contrast checker → · Palette generator →

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