#1F7418#1F7418

#1F7418 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.148 H 142.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#1F7418
RGBrgb(31, 116, 24)
HSLhsl(115, 66%, 27%)
HSVhsv(115, 79%, 45%)
CMYKcmyk(73.3%, 0%, 79.3%, 54.5%)
CIE-LABlab(42.53, -42.96, 40.67)
CIE-LCHlch(42.53, 59.16, 136.57°)
OKLaboklab(49.05% -0.117 0.0914)
OKLCHoklch(49.05% 0.148 142)
XYZxyz(6.9749, 12.8473, 2.9762)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7418 #6D1874
analogous
#4D7418 #1F7418 #18743F
triadic
#1F7418 #181F74 #74181F
tetradic
#1F7418 #184D74 #6D1874 #743F18
square
#1F7418 #184D74 #6D1874 #743F18
split-complementary
#1F7418 #3F1874 #74184D
monochromatic
#071905 #11410E #1F7418 #2DA722 #3ED532

Accessibility & contrast

On white

5.88
#1F7418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#1F7418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7418
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7418#FFFFFF#000000##FFFFFF
##1F74181.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776804
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#077063
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7418;
/* rgb */ color: rgb(31, 116, 24);
/* oklch */ color: oklch(49.0% 0.148 142.0);
Tailwind
colors: {
  custom: {
    50: '#699d5c',
    500: '#1f7418',
    950: '#000000',
  },
}
SCSS
$custom: #1f7418;
$custom-light: #699d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7418",
  "rgb": {
    "r": 31,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 115.435,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49049,
    "c": 0.14845,
    "h": 142
  },
  "luminance": 0.12848
}

Semantic roles & 50–950 ramp

primary
#1F7418
secondary
#A13FA9
accent
#3FE9DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7418

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

Preview Lab → · Contrast checker → · Palette generator →

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