#1F4207#1F4207

#1F4207 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.0% C 0.094 H 135.9°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#1F4207
RGBrgb(31, 66, 7)
HSLhsl(96, 81%, 14%)
HSVhsv(96, 89%, 26%)
CMYKcmyk(53%, 0%, 89.4%, 74.1%)
CIE-LABlab(24.33, -24.13, 29.39)
CIE-LCHlch(24.33, 38.03, 129.38°)
OKLaboklab(33.97% -0.0673 0.0651)
OKLCHoklch(33.97% 0.094 135.9)
XYZxyz(2.5516, 4.2029, 0.8778)
Luminance0.0420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4207 #2A0742
analogous
#3D4207 #1F4207 #07420C
triadic
#1F4207 #071F42 #42071F
tetradic
#1F4207 #073D42 #2A0742 #420C07
square
#1F4207 #073D42 #2A0742 #420C07
split-complementary
#1F4207 #0C0742 #42073D
monochromatic
#0D1C03 #0D1C03 #1F4207 #39790D #53B113

Accessibility & contrast

On white

11.41
#1F4207 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F4207 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4207
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4207#FFFFFF#000000##FFFFFF
##1F42071.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#40390E
Tritanopia (blue-blind)
#1E3F37
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f4207;
/* rgb */ color: rgb(31, 66, 7);
/* oklch */ color: oklch(34.0% 0.094 135.9);
Tailwind
colors: {
  custom: {
    50: '#5f774c',
    500: '#1f4207',
    950: '#000000',
  },
}
SCSS
$custom: #1f4207;
$custom-light: #5f774c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4207",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 7
  },
  "hsl": {
    "h": 95.593,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.33966,
    "c": 0.09367,
    "h": 135.9
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#1F4207
secondary
#5B2481
accent
#31F7A6
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F4207

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

Preview Lab → · Contrast checker → · Palette generator →

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