#1F3704#1F3704

#1F3704 is a dark, moderate yellow-green. Relative luminance 0.030; OKLCH L 30.5% C 0.080 H 132.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#1F3704
RGBrgb(31, 55, 4)
HSLhsl(88, 86%, 12%)
HSVhsv(88, 93%, 22%)
CMYKcmyk(43.6%, 0%, 92.7%, 78.4%)
CIE-LABlab(20.17, -18.97, 26.24)
CIE-LCHlch(20.17, 32.38, 125.86°)
OKLaboklab(30.55% -0.0538 0.0594)
OKLCHoklch(30.55% 0.08 132.1)
XYZxyz(1.9532, 3.0324, 0.5972)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3704 #1C0437
analogous
#373604 #1F3704 #063704
triadic
#1F3704 #041F37 #37041F
tetradic
#1F3704 #043736 #1C0437 #370406
square
#1F3704 #043736 #1C0437 #370406
split-complementary
#1F3704 #040637 #360437
monochromatic
#101D02 #101D02 #1F3704 #3F7008 #5FA90C

Accessibility & contrast

On white

13.07
#1F3704 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F3704 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3704
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3704#FFFFFF#000000##FFFFFF
##1F37041.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3200
Deuteranopia (green-blind)
#373009
Tritanopia (blue-blind)
#1F342E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f3704;
/* rgb */ color: rgb(31, 55, 4);
/* oklch */ color: oklch(30.5% 0.080 132.1);
Tailwind
colors: {
  custom: {
    50: '#5d6e49',
    500: '#1f3704',
    950: '#000000',
  },
}
SCSS
$custom: #1f3704;
$custom-light: #5d6e49;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3704",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 4
  },
  "hsl": {
    "h": 88.235,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.30549,
    "c": 0.08015,
    "h": 132.1
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#1F3704
secondary
#491E79
accent
#2BFD8E
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3704

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

Preview Lab → · Contrast checker → · Palette generator →

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