#1F8041#1F8041

#1F8041 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.0% C 0.130 H 150.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#1F8041
RGBrgb(31, 128, 65)
HSLhsl(141, 61%, 31%)
HSVhsv(141, 76%, 50%)
CMYKcmyk(75.8%, 0%, 49.2%, 49.8%)
CIE-LABlab(47.12, -42.18, 26.40)
CIE-LCHlch(47.12, 49.76, 147.96°)
OKLaboklab(52.99% -0.1134 0.0645)
OKLCHoklch(52.99% 0.13 150.4)
XYZxyz(9.2376, 16.1102, 7.6227)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8041 #801F5E
analogous
#2D801F #1F8041 #1F8071
triadic
#1F8041 #411F80 #80411F
tetradic
#1F8041 #1F2D80 #801F5E #80711F
square
#1F8041 #1F2D80 #801F5E #80711F
split-complementary
#1F8041 #711F80 #801F2D
monochromatic
#071D0F #134F28 #1F8041 #2BB15A #47D278

Accessibility & contrast

On white

4.97
#1F8041 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#1F8041 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8041
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8041#FFFFFF#000000##FFFFFF
##1F80411.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81753C
Deuteranopia (green-blind)
#756D45
Tritanopia (blue-blind)
#007E71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f8041;
/* rgb */ color: rgb(31, 128, 65);
/* oklch */ color: oklch(53.0% 0.130 150.4);
Tailwind
colors: {
  custom: {
    50: '#6aa677',
    500: '#1f8041',
    950: '#000000',
  },
}
SCSS
$custom: #1f8041;
$custom-light: #6aa677;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8041",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 65
  },
  "hsl": {
    "h": 141.031,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52991,
    "c": 0.13048,
    "h": 150.4
  },
  "luminance": 0.16111
}

Semantic roles & 50–950 ramp

primary
#1F8041
secondary
#B3488D
accent
#44ACE4
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F8041

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

Preview Lab → · Contrast checker → · Palette generator →

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