#1F7318#1F7318

#1F7318 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.147 H 142.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#1F7318
RGBrgb(31, 115, 24)
HSLhsl(115, 65%, 27%)
HSVhsv(115, 79%, 45%)
CMYKcmyk(73%, 0%, 79.1%, 54.9%)
CIE-LABlab(42.18, -42.60, 40.33)
CIE-LCHlch(42.18, 58.66, 136.57°)
OKLaboklab(48.76% -0.116 0.0906)
OKLCHoklch(48.76% 0.147 142)
XYZxyz(6.8603, 12.6180, 2.9379)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7318 #6C1873
analogous
#4C7318 #1F7318 #18733F
triadic
#1F7318 #181F73 #73181F
tetradic
#1F7318 #184C73 #6C1873 #733F18
square
#1F7318 #184C73 #6C1873 #733F18
split-complementary
#1F7318 #3F1873 #73184C
monochromatic
#071905 #11400D #1F7318 #2DA623 #3ED431

Accessibility & contrast

On white

5.96
#1F7318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#1F7318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7318
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7318#FFFFFF#000000##FFFFFF
##1F73181.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#6C6122
Tritanopia (blue-blind)
#086F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7318;
/* rgb */ color: rgb(31, 115, 24);
/* oklch */ color: oklch(48.8% 0.147 142.0);
Tailwind
colors: {
  custom: {
    50: '#699c5c',
    500: '#1f7318',
    950: '#000000',
  },
}
SCSS
$custom: #1f7318;
$custom-light: #699c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7318",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 115.385,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.48758,
    "c": 0.14724,
    "h": 142
  },
  "luminance": 0.12619
}

Semantic roles & 50–950 ramp

primary
#1F7318
secondary
#A03FA8
accent
#3FE8DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7318

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

Preview Lab → · Contrast checker → · Palette generator →

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