#1F7312#1F7312

#1F7312 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.7% C 0.150 H 141.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#1F7312
RGBrgb(31, 115, 18)
HSLhsl(112, 73%, 26%)
HSVhsv(112, 84%, 45%)
CMYKcmyk(73%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.15, -43.02, 42.33)
CIE-LCHlch(42.15, 60.36, 135.46°)
OKLaboklab(48.72% -0.1175 0.0939)
OKLCHoklch(48.72% 0.15 141.4)
XYZxyz(6.8046, 12.5957, 2.6448)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7312 #661273
analogous
#4F7312 #1F7312 #127335
triadic
#1F7312 #121F73 #73121F
tetradic
#1F7312 #124F73 #661273 #733512
square
#1F7312 #124F73 #661273 #733512
split-complementary
#1F7312 #351273 #73124F
monochromatic
#071A04 #113E0A #1F7312 #2DA81A #3CDD23

Accessibility & contrast

On white

5.97
#1F7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7312
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7312#FFFFFF#000000##FFFFFF
##1F73121.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6C611E
Tritanopia (blue-blind)
#0A6F61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7312;
/* rgb */ color: rgb(31, 115, 18);
/* oklch */ color: oklch(48.7% 0.150 141.4);
Tailwind
colors: {
  custom: {
    50: '#699c59',
    500: '#1f7312',
    950: '#000000',
  },
}
SCSS
$custom: #1f7312;
$custom-light: #699c59;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7312",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 111.959,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48719,
    "c": 0.15041,
    "h": 141.4
  },
  "luminance": 0.12596
}

Semantic roles & 50–950 ramp

primary
#1F7312
secondary
#9A37AA
accent
#38F0D7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7312

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

Preview Lab → · Contrast checker → · Palette generator →

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