#1F7319#1F7319

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

Color values

HEX#1F7319
RGBrgb(31, 115, 25)
HSLhsl(116, 64%, 27%)
HSVhsv(116, 78%, 45%)
CMYKcmyk(73%, 0%, 78.3%, 54.9%)
CIE-LABlab(42.19, -42.53, 39.96)
CIE-LCHlch(42.19, 58.35, 136.78°)
OKLaboklab(48.77% -0.1158 0.09)
OKLCHoklch(48.77% 0.147 142.1)
XYZxyz(6.8709, 12.6222, 2.9937)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7319 #6D1973
analogous
#4C7319 #1F7319 #197340
triadic
#1F7319 #191F73 #73191F
tetradic
#1F7319 #194C73 #6D1973 #734019
square
#1F7319 #194C73 #6D1973 #734019
split-complementary
#1F7319 #401973 #73194C
monochromatic
#071905 #11410E #1F7319 #2DA524 #3ED334

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7319#FFFFFF#000000##FFFFFF
##1F73191.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)
#766806
Deuteranopia (green-blind)
#6C6123
Tritanopia (blue-blind)
#086F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7319;
/* rgb */ color: rgb(31, 115, 25);
/* oklch */ color: oklch(48.8% 0.147 142.1);
Tailwind
colors: {
  custom: {
    50: '#699c5d',
    500: '#1f7319',
    950: '#000000',
  },
}
SCSS
$custom: #1f7319;
$custom-light: #699c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7319",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 25
  },
  "hsl": {
    "h": 116,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.48766,
    "c": 0.14666,
    "h": 142.1
  },
  "luminance": 0.12623
}

Semantic roles & 50–950 ramp

primary
#1F7319
secondary
#A140A8
accent
#41E7DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7319

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

Preview Lab → · Contrast checker → · Palette generator →

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