#1F4010#1F4010

#1F4010 is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.4% C 0.084 H 137.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#1F4010
RGBrgb(31, 64, 16)
HSLhsl(101, 60%, 16%)
HSVhsv(101, 75%, 25%)
CMYKcmyk(51.6%, 0%, 75%, 74.9%)
CIE-LABlab(23.66, -22.40, 24.75)
CIE-LCHlch(23.66, 33.38, 132.14°)
OKLaboklab(33.43% -0.0619 0.0569)
OKLCHoklch(33.43% 0.084 137.4)
XYZxyz(2.4919, 3.9954, 1.1300)
Luminance0.0400 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4010 #311040
analogous
#374010 #1F4010 #104019
triadic
#1F4010 #101F40 #40101F
tetradic
#1F4010 #103740 #311040 #401910
square
#1F4010 #103740 #311040 #401910
split-complementary
#1F4010 #191040 #401037
monochromatic
#0C1806 #0C1806 #1F4010 #37711C #4EA228

Accessibility & contrast

On white

11.67
#1F4010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4010
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4010#FFFFFF#000000##FFFFFF
##1F40101.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A0A
Deuteranopia (green-blind)
#3E3714
Tritanopia (blue-blind)
#1D3D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f4010;
/* rgb */ color: rgb(31, 64, 16);
/* oklch */ color: oklch(33.4% 0.084 137.4);
Tailwind
colors: {
  custom: {
    50: '#5e7551',
    500: '#1f4010',
    950: '#000000',
  },
}
SCSS
$custom: #1f4010;
$custom-light: #5e7551;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4010",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 16
  },
  "hsl": {
    "h": 101.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.33435,
    "c": 0.08406,
    "h": 137.4
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#1F4010
secondary
#63327A
accent
#45E3B2
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #1F4010

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

Preview Lab → · Contrast checker → · Palette generator →

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