#1F3904#1F3904

#1F3904 is a dark, moderate yellow-green. Relative luminance 0.032; OKLCH L 31.2% C 0.083 H 132.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1F3904
RGBrgb(31, 57, 4)
HSLhsl(89, 87%, 12%)
HSVhsv(89, 93%, 22%)
CMYKcmyk(45.6%, 0%, 93%, 77.6%)
CIE-LABlab(20.93, -19.99, 27.08)
CIE-LCHlch(20.93, 33.66, 126.44°)
OKLaboklab(31.17% -0.0565 0.0609)
OKLCHoklch(31.17% 0.083 132.9)
XYZxyz(2.0501, 3.2262, 0.6295)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3904 #1E0439
analogous
#393904 #1F3904 #053904
triadic
#1F3904 #041F39 #39041F
tetradic
#1F3904 #043939 #1E0439 #390405
square
#1F3904 #043939 #1E0439 #390405
split-complementary
#1F3904 #040539 #390439
monochromatic
#101D02 #101D02 #1F3904 #3E7208 #5DAB0C

Accessibility & contrast

On white

12.76
#1F3904 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F3904 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3904
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3904#FFFFFF#000000##FFFFFF
##1F39041.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3400
Deuteranopia (green-blind)
#383209
Tritanopia (blue-blind)
#1F362F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f3904;
/* rgb */ color: rgb(31, 57, 4);
/* oklch */ color: oklch(31.2% 0.083 132.9);
Tailwind
colors: {
  custom: {
    50: '#5e6f49',
    500: '#1f3904',
    950: '#000000',
  },
}
SCSS
$custom: #1f3904;
$custom-light: #5e6f49;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3904",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 4
  },
  "hsl": {
    "h": 89.434,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.31167,
    "c": 0.08306,
    "h": 132.9
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#1F3904
secondary
#4C1E7B
accent
#2BFD92
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3904

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

Preview Lab → · Contrast checker → · Palette generator →

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