#1F571D#1F571D

#1F571D is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.6% C 0.107 H 142.8°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#1F571D
RGBrgb(31, 87, 29)
HSLhsl(118, 50%, 23%)
HSVhsv(118, 67%, 34%)
CMYKcmyk(64.4%, 0%, 66.7%, 65.9%)
CIE-LABlab(32.25, -31.27, 27.66)
CIE-LCHlch(32.25, 41.75, 138.51°)
OKLaboklab(40.55% -0.0851 0.0647)
OKLCHoklch(40.55% 0.107 142.8)
XYZxyz(4.1948, 7.1960, 2.3301)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F571D #551D57
analogous
#3C571D #1F571D #1D5738
triadic
#1F571D #1D1F57 #571D1F
tetradic
#1F571D #1D3C57 #551D57 #57381D
square
#1F571D #1D3C57 #551D57 #57381D
split-complementary
#1F571D #381D57 #571D3C
monochromatic
#081708 #0F290E #1F571D #2F852C #40B33C

Accessibility & contrast

On white

8.61
#1F571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1F571D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F571D
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F571D#FFFFFF#000000##FFFFFF
##1F571D1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F16
Deuteranopia (green-blind)
#524A22
Tritanopia (blue-blind)
#15544B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f571d;
/* rgb */ color: rgb(31, 87, 29);
/* oklch */ color: oklch(40.6% 0.107 142.8);
Tailwind
colors: {
  custom: {
    50: '#62875b',
    500: '#1f571d',
    950: '#000000',
  },
}
SCSS
$custom: #1f571d;
$custom-light: #62875b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f571d",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 117.931,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.4055,
    "c": 0.10687,
    "h": 142.8
  },
  "luminance": 0.07196
}

Semantic roles & 50–950 ramp

primary
#1F571D
secondary
#8A448C
accent
#4EDAD5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050B04
muted
#7A7C79

Preview Lab

Preview with #1F571D

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

Preview Lab → · Contrast checker → · Palette generator →

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