#1F501F#1F501F

#1F501F is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.5% C 0.095 H 143.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#1F501F
RGBrgb(31, 80, 31)
HSLhsl(120, 44%, 22%)
HSVhsv(120, 61%, 31%)
CMYKcmyk(61.2%, 0%, 61.2%, 68.6%)
CIE-LABlab(29.73, -27.95, 23.68)
CIE-LCHlch(29.73, 36.64, 139.73°)
OKLaboklab(38.48% -0.076 0.0563)
OKLCHoklch(38.48% 0.095 143.5)
XYZxyz(3.6809, 6.1272, 2.2848)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F501F #501F50
analogous
#38501F #1F501F #1F5038
triadic
#1F501F #1F1F50 #501F1F
tetradic
#1F501F #1F3850 #501F50 #50381F
square
#1F501F #1F3850 #501F50 #50381F
split-complementary
#1F501F #381F50 #501F38
monochromatic
#091609 #0E240E #1F501F #307C30 #41A841

Accessibility & contrast

On white

9.44
#1F501F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F501F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F501F
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F501F#FFFFFF#000000##FFFFFF
##1F501F1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491A
Deuteranopia (green-blind)
#4B4423
Tritanopia (blue-blind)
#174E45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f501f;
/* rgb */ color: rgb(31, 80, 31);
/* oklch */ color: oklch(38.5% 0.095 143.5);
Tailwind
colors: {
  custom: {
    50: '#60815c',
    500: '#1f501f',
    950: '#000000',
  },
}
SCSS
$custom: #1f501f;
$custom-light: #60815c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f501f",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.38483,
    "c": 0.09455,
    "h": 143.5
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#1F501F
secondary
#854685
accent
#54D4D4
background
#F5F7F5
surface
#EAEEE9
border
#C6C9C5
text
#050A04
muted
#797C79

Preview Lab

Preview with #1F501F

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

Preview Lab → · Contrast checker → · Palette generator →

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