#1F7311#1F7311

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

Color values

HEX#1F7311
RGBrgb(31, 115, 17)
HSLhsl(111, 74%, 26%)
HSVhsv(111, 85%, 45%)
CMYKcmyk(73%, 0%, 85.2%, 54.9%)
CIE-LABlab(42.14, -43.08, 42.63)
CIE-LCHlch(42.14, 60.61, 135.30°)
OKLaboklab(48.71% -0.1177 0.0944)
OKLCHoklch(48.71% 0.151 141.3)
XYZxyz(6.7966, 12.5925, 2.6026)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7311 #651173
analogous
#507311 #1F7311 #117334
triadic
#1F7311 #111F73 #73111F
tetradic
#1F7311 #115073 #651173 #733411
square
#1F7311 #115073 #651173 #733411
split-complementary
#1F7311 #341173 #731150
monochromatic
#071B04 #113E09 #1F7311 #2DA819 #3CDE21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7311#FFFFFF#000000##FFFFFF
##1F73111.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)
#6C611D
Tritanopia (blue-blind)
#0A6F61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7311;
/* rgb */ color: rgb(31, 115, 17);
/* oklch */ color: oklch(48.7% 0.151 141.3);
Tailwind
colors: {
  custom: {
    50: '#699c59',
    500: '#1f7311',
    950: '#000000',
  },
}
SCSS
$custom: #1f7311;
$custom-light: #699c59;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7311",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 111.429,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48713,
    "c": 0.15088,
    "h": 141.3
  },
  "luminance": 0.12593
}

Semantic roles & 50–950 ramp

primary
#1F7311
secondary
#9936AA
accent
#37F1D6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7311

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

Preview Lab → · Contrast checker → · Palette generator →

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