#1F8240#1F8240

#1F8240 is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.5% C 0.134 H 149.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#1F8240
RGBrgb(31, 130, 64)
HSLhsl(140, 61%, 32%)
HSVhsv(140, 76%, 51%)
CMYKcmyk(76.2%, 0%, 50.8%, 49%)
CIE-LABlab(47.78, -43.12, 27.77)
CIE-LCHlch(47.78, 51.29, 147.21°)
OKLaboklab(53.54% -0.1159 0.0675)
OKLCHoklch(53.54% 0.134 149.8)
XYZxyz(9.4723, 16.6256, 7.5593)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8240 #821F61
analogous
#30821F #1F8240 #1F8272
triadic
#1F8240 #401F82 #82401F
tetradic
#1F8240 #1F3082 #821F61 #82721F
square
#1F8240 #1F3082 #821F61 #82721F
split-complementary
#1F8240 #721F82 #821F30
monochromatic
#071F0F #135128 #1F8240 #2BB358 #48D376

Accessibility & contrast

On white

4.86
#1F8240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#1F8240 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8240
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8240#FFFFFF#000000##FFFFFF
##1F82401.004.864.334.86
#FFFFFF4.861.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83763B
Deuteranopia (green-blind)
#776E45
Tritanopia (blue-blind)
#008073
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f8240;
/* rgb */ color: rgb(31, 130, 64);
/* oklch */ color: oklch(53.5% 0.134 149.8);
Tailwind
colors: {
  custom: {
    50: '#6ba776',
    500: '#1f8240',
    950: '#000000',
  },
}
SCSS
$custom: #1f8240;
$custom-light: #6ba776;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8240",
  "rgb": {
    "r": 31,
    "g": 130,
    "b": 64
  },
  "hsl": {
    "h": 140,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53536,
    "c": 0.13419,
    "h": 149.8
  },
  "luminance": 0.16627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F8240

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

Preview Lab → · Contrast checker → · Palette generator →

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