#1F571F#1F571F

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

Color values

HEX#1F571F
RGBrgb(31, 87, 31)
HSLhsl(120, 47%, 23%)
HSVhsv(120, 64%, 34%)
CMYKcmyk(64.4%, 0%, 64.4%, 65.9%)
CIE-LABlab(32.27, -31.01, 26.65)
CIE-LCHlch(32.27, 40.89, 139.32°)
OKLaboklab(40.58% -0.0843 0.0627)
OKLCHoklch(40.58% 0.105 143.3)
XYZxyz(4.2204, 7.2062, 2.4646)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F571F #571F57
analogous
#3B571F #1F571F #1F573B
triadic
#1F571F #1F1F57 #571F1F
tetradic
#1F571F #1F3B57 #571F57 #573B1F
square
#1F571F #1F3B57 #571F57 #573B1F
split-complementary
#1F571F #3B1F57 #571F3B
monochromatic
#081708 #0F2A0F #1F571F #2F842F #3FB13F

Accessibility & contrast

On white

8.60
#1F571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F571F
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F571F#FFFFFF#000000##FFFFFF
##1F571F1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f571f;
/* rgb */ color: rgb(31, 87, 31);
/* oklch */ color: oklch(40.6% 0.105 143.3);
Tailwind
colors: {
  custom: {
    50: '#62875d',
    500: '#1f571f',
    950: '#000000',
  },
}
SCSS
$custom: #1f571f;
$custom-light: #62875d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f571f",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.40576,
    "c": 0.10505,
    "h": 143.3
  },
  "luminance": 0.07207
}

Semantic roles & 50–950 ramp

primary
#1F571F
secondary
#8C468C
accent
#51D7D7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050B04
muted
#7A7C79

Preview Lab

Preview with #1F571F

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

Preview Lab → · Contrast checker → · Palette generator →

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