#1F5712#1F5712

#1F5712 is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.4% C 0.116 H 140.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#1F5712
RGBrgb(31, 87, 18)
HSLhsl(109, 66%, 21%)
HSVhsv(109, 79%, 34%)
CMYKcmyk(64.4%, 0%, 79.3%, 65.9%)
CIE-LABlab(32.15, -32.43, 32.66)
CIE-LCHlch(32.15, 46.03, 134.80°)
OKLaboklab(40.44% -0.0889 0.0738)
OKLCHoklch(40.44% 0.116 140.3)
XYZxyz(4.0823, 7.1510, 1.7373)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5712 #4A1257
analogous
#415712 #1F5712 #125728
triadic
#1F5712 #121F57 #57121F
tetradic
#1F5712 #124157 #4A1257 #572812
square
#1F5712 #124157 #4A1257 #572812
split-complementary
#1F5712 #281257 #571241
monochromatic
#091905 #0D2408 #1F5712 #318A1C #43BC27

Accessibility & contrast

On white

8.64
#1F5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F5712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5712
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5712#FFFFFF#000000##FFFFFF
##1F57121.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4E06
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#17544A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f5712;
/* rgb */ color: rgb(31, 87, 18);
/* oklch */ color: oklch(40.4% 0.116 140.3);
Tailwind
colors: {
  custom: {
    50: '#638755',
    500: '#1f5712',
    950: '#000000',
  },
}
SCSS
$custom: #1f5712;
$custom-light: #638755;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5712",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 108.696,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40435,
    "c": 0.11552,
    "h": 140.3
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

primary
#1F5712
secondary
#7F3590
accent
#3FE9C9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F5712

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

Preview Lab → · Contrast checker → · Palette generator →

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