#1F4004#1F4004

#1F4004 is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.3% C 0.093 H 135.0°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#1F4004
RGBrgb(31, 64, 4)
HSLhsl(93, 88%, 13%)
HSVhsv(93, 94%, 25%)
CMYKcmyk(51.6%, 0%, 93.8%, 74.9%)
CIE-LABlab(23.56, -23.42, 29.85)
CIE-LCHlch(23.56, 37.94, 128.12°)
OKLaboklab(33.33% -0.0657 0.0658)
OKLCHoklch(33.33% 0.093 135)
XYZxyz(2.4203, 3.9667, 0.7530)
Luminance0.0397 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4004 #250440
analogous
#3D4004 #1F4004 #044007
triadic
#1F4004 #041F40 #40041F
tetradic
#1F4004 #043D40 #250440 #400704
square
#1F4004 #043D40 #250440 #400704
split-complementary
#1F4004 #070440 #40043D
monochromatic
#0E1D02 #0E1D02 #1F4004 #3B7A08 #57B30B

Accessibility & contrast

On white

11.71
#1F4004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F4004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4004
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4004#FFFFFF#000000##FFFFFF
##1F40041.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#3E370B
Tritanopia (blue-blind)
#1E3D35
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f4004;
/* rgb */ color: rgb(31, 64, 4);
/* oklch */ color: oklch(33.3% 0.093 135.0);
Tailwind
colors: {
  custom: {
    50: '#5f754a',
    500: '#1f4004',
    950: '#000000',
  },
}
SCSS
$custom: #1f4004;
$custom-light: #5f754a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4004",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 93,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.09298,
    "h": 135
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#1F4004
secondary
#551F81
accent
#29FE9F
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F4004

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

Preview Lab → · Contrast checker → · Palette generator →

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