#1F5017#1F5017

#1F5017 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.102 H 141.0°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#1F5017
RGBrgb(31, 80, 23)
HSLhsl(112, 55%, 20%)
HSVhsv(112, 71%, 31%)
CMYKcmyk(61.2%, 0%, 71.2%, 68.6%)
CIE-LABlab(29.64, -28.99, 27.77)
CIE-LCHlch(29.64, 40.14, 136.23°)
OKLaboklab(38.38% -0.0793 0.0642)
OKLCHoklch(38.38% 0.102 141)
XYZxyz(3.5882, 6.0902, 1.7969)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5017 #481750
analogous
#3B5017 #1F5017 #17502B
triadic
#1F5017 #171F50 #50171F
tetradic
#1F5017 #173B50 #481750 #502B17
square
#1F5017 #173B50 #481750 #502B17
split-complementary
#1F5017 #2B1750 #50173B
monochromatic
#091807 #0D2009 #1F5017 #318025 #44AF32

Accessibility & contrast

On white

9.47
#1F5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5017
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5017#FFFFFF#000000##FFFFFF
##1F50171.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524810
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#194D44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f5017;
/* rgb */ color: rgb(31, 80, 23);
/* oklch */ color: oklch(38.4% 0.102 141.0);
Tailwind
colors: {
  custom: {
    50: '#618257',
    500: '#1f5017',
    950: '#000000',
  },
}
SCSS
$custom: #1f5017;
$custom-light: #618257;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5017",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 111.579,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38377,
    "c": 0.10199,
    "h": 141
  },
  "luminance": 0.0609
}

Semantic roles & 50–950 ramp

primary
#1F5017
secondary
#7D3C87
accent
#49DFCA
background
#F5F7F5
surface
#EAEEE9
border
#C6C9C5
text
#050A03
muted
#797C78

Preview Lab

Preview with #1F5017

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

Preview Lab → · Contrast checker → · Palette generator →

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