#1F7415#1F7415

#1F7415 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.150 H 141.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#1F7415
RGBrgb(31, 116, 21)
HSLhsl(114, 69%, 27%)
HSVhsv(114, 82%, 45%)
CMYKcmyk(73.3%, 0%, 81.9%, 54.5%)
CIE-LABlab(42.51, -43.18, 41.71)
CIE-LCHlch(42.51, 60.03, 135.99°)
OKLaboklab(49.03% -0.1177 0.0931)
OKLCHoklch(49.03% 0.15 141.7)
XYZxyz(6.9454, 12.8355, 2.8208)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7415 #6A1574
analogous
#4F7415 #1F7415 #15743B
triadic
#1F7415 #151F74 #74151F
tetradic
#1F7415 #154F74 #6A1574 #743B15
square
#1F7415 #154F74 #6A1574 #743B15
split-complementary
#1F7415 #3B1574 #74154F
monochromatic
#071A05 #11400C #1F7415 #2DA81E #3DD92B

Accessibility & contrast

On white

5.89
#1F7415 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#1F7415 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7415
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7415#FFFFFF#000000##FFFFFF
##1F74151.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#087062
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7415;
/* rgb */ color: rgb(31, 116, 21);
/* oklch */ color: oklch(49.0% 0.150 141.7);
Tailwind
colors: {
  custom: {
    50: '#699d5b',
    500: '#1f7415',
    950: '#000000',
  },
}
SCSS
$custom: #1f7415;
$custom-light: #699d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7415",
  "rgb": {
    "r": 31,
    "g": 116,
    "b": 21
  },
  "hsl": {
    "h": 113.684,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49028,
    "c": 0.1501,
    "h": 141.7
  },
  "luminance": 0.12836
}

Semantic roles & 50–950 ramp

primary
#1F7415
secondary
#9E3BAA
accent
#3CECDA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7415

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

Preview Lab → · Contrast checker → · Palette generator →

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