#1F7315#1F7315

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

Color values

HEX#1F7315
RGBrgb(31, 115, 21)
HSLhsl(114, 69%, 27%)
HSVhsv(114, 82%, 45%)
CMYKcmyk(73%, 0%, 81.7%, 54.9%)
CIE-LABlab(42.16, -42.83, 41.37)
CIE-LCHlch(42.16, 59.55, 135.99°)
OKLaboklab(48.74% -0.1168 0.0924)
OKLCHoklch(48.74% 0.149 141.7)
XYZxyz(6.8308, 12.6062, 2.7826)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7315 #691573
analogous
#4E7315 #1F7315 #15733A
triadic
#1F7315 #151F73 #73151F
tetradic
#1F7315 #154E73 #691573 #733A15
square
#1F7315 #154E73 #691573 #733A15
split-complementary
#1F7315 #3A1573 #73154E
monochromatic
#071A05 #113F0C #1F7315 #2DA71E #3DD82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7315#FFFFFF#000000##FFFFFF
##1F73151.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)
#766800
Deuteranopia (green-blind)
#6C6120
Tritanopia (blue-blind)
#096F62
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7315;
/* rgb */ color: rgb(31, 115, 21);
/* oklch */ color: oklch(48.7% 0.149 141.7);
Tailwind
colors: {
  custom: {
    50: '#699c5b',
    500: '#1f7315',
    950: '#000000',
  },
}
SCSS
$custom: #1f7315;
$custom-light: #699c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7315",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 113.617,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48737,
    "c": 0.14891,
    "h": 141.7
  },
  "luminance": 0.12607
}

Semantic roles & 50–950 ramp

primary
#1F7315
secondary
#9D3BA9
accent
#3CECD9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7315

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

Preview Lab → · Contrast checker → · Palette generator →

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