#1F7018#1F7018

#1F7018 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.144 H 142.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#1F7018
RGBrgb(31, 112, 24)
HSLhsl(115, 65%, 27%)
HSVhsv(115, 79%, 44%)
CMYKcmyk(72.3%, 0%, 78.6%, 56.1%)
CIE-LABlab(41.13, -41.53, 39.28)
CIE-LCHlch(41.13, 57.16, 136.59°)
OKLaboklab(47.88% -0.1131 0.0885)
OKLCHoklch(47.88% 0.144 142)
XYZxyz(6.5237, 11.9449, 2.8258)
Luminance0.1195 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7018 #691870
analogous
#4B7018 #1F7018 #18703D
triadic
#1F7018 #181F70 #70181F
tetradic
#1F7018 #184B70 #691870 #703D18
square
#1F7018 #184B70 #691870 #703D18
split-complementary
#1F7018 #3D1870 #70184B
monochromatic
#071905 #113E0D #1F7018 #2DA223 #3DD330

Accessibility & contrast

On white

6.20
#1F7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#1F7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7018
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7018#FFFFFF#000000##FFFFFF
##1F70181.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#695F22
Tritanopia (blue-blind)
#0A6C5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #1f7018;
/* rgb */ color: rgb(31, 112, 24);
/* oklch */ color: oklch(47.9% 0.144 142.0);
Tailwind
colors: {
  custom: {
    50: '#689a5c',
    500: '#1f7018',
    950: '#000000',
  },
}
SCSS
$custom: #1f7018;
$custom-light: #689a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7018",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 115.227,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.47884,
    "c": 0.14361,
    "h": 142
  },
  "luminance": 0.11946
}

Semantic roles & 50–950 ramp

primary
#1F7018
secondary
#9D3EA5
accent
#40E8DA
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7018

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

Preview Lab → · Contrast checker → · Palette generator →

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