#1F4012#1F4012

#1F4012 is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.5% C 0.082 H 138.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1F4012
RGBrgb(31, 64, 18)
HSLhsl(103, 56%, 16%)
HSVhsv(103, 72%, 25%)
CMYKcmyk(51.6%, 0%, 71.9%, 74.9%)
CIE-LABlab(23.68, -22.17, 23.75)
CIE-LCHlch(23.68, 32.49, 133.04°)
OKLaboklab(33.46% -0.0611 0.055)
OKLCHoklch(33.46% 0.082 138)
XYZxyz(2.5076, 4.0016, 1.2124)
Luminance0.0400 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4012 #331240
analogous
#364012 #1F4012 #12401C
triadic
#1F4012 #121F40 #40121F
tetradic
#1F4012 #123640 #331240 #401C12
square
#1F4012 #123640 #331240 #401C12
split-complementary
#1F4012 #1C1240 #401236
monochromatic
#0C1807 #0C1807 #1F4012 #36701F #4DA02D

Accessibility & contrast

On white

11.66
#1F4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F4012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4012
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4012#FFFFFF#000000##FFFFFF
##1F40121.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A0C
Deuteranopia (green-blind)
#3E3716
Tritanopia (blue-blind)
#1D3E36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f4012;
/* rgb */ color: rgb(31, 64, 18);
/* oklch */ color: oklch(33.5% 0.082 138.0);
Tailwind
colors: {
  custom: {
    50: '#5e7552',
    500: '#1f4012',
    950: '#000000',
  },
}
SCSS
$custom: #1f4012;
$custom-light: #5e7552;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4012",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 103.043,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.08225,
    "h": 138
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#1F4012
secondary
#663579
accent
#48DFB5
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040802
muted
#797B78

Preview Lab

Preview with #1F4012

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

Preview Lab → · Contrast checker → · Palette generator →

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