#1F4408#1F4408

#1F4408 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.6% C 0.096 H 136.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4408
RGBrgb(31, 68, 8)
HSLhsl(97, 79%, 15%)
HSVhsv(97, 88%, 27%)
CMYKcmyk(54.4%, 0%, 88.2%, 73.3%)
CIE-LABlab(25.08, -24.98, 29.72)
CIE-LCHlch(25.08, 38.82, 130.06°)
OKLaboklab(34.59% -0.0695 0.0659)
OKLCHoklch(34.59% 0.096 136.5)
XYZxyz(2.6759, 4.4429, 0.9462)
Luminance0.0444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4408 #2D0844
analogous
#3D4408 #1F4408 #08440F
triadic
#1F4408 #081F44 #44081F
tetradic
#1F4408 #083D44 #2D0844 #440F08
square
#1F4408 #083D44 #2D0844 #440F08
split-complementary
#1F4408 #0F0844 #44083D
monochromatic
#0C1B03 #0C1B03 #1F4408 #387B0E #51B215

Accessibility & contrast

On white

11.12
#1F4408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F4408 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4408
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4408#FFFFFF#000000##FFFFFF
##1F44081.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473D00
Deuteranopia (green-blind)
#423A0F
Tritanopia (blue-blind)
#1D4139
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f4408;
/* rgb */ color: rgb(31, 68, 8);
/* oklch */ color: oklch(34.6% 0.096 136.5);
Tailwind
colors: {
  custom: {
    50: '#5f784d',
    500: '#1f4408',
    950: '#000000',
  },
}
SCSS
$custom: #1f4408;
$custom-light: #5f784d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4408",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 8
  },
  "hsl": {
    "h": 97,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34588,
    "c": 0.09583,
    "h": 136.5
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#1F4408
secondary
#5F2682
accent
#32F5AB
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050901
muted
#797B77

Preview Lab

Preview with #1F4408

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

Preview Lab → · Contrast checker → · Palette generator →

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