#1F4A09#1F4A09

#1F4A09 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.4% C 0.104 H 137.7°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#1F4A09
RGBrgb(31, 74, 9)
HSLhsl(100, 78%, 16%)
HSVhsv(100, 88%, 29%)
CMYKcmyk(58.1%, 0%, 87.8%, 71%)
CIE-LABlab(27.32, -27.61, 31.42)
CIE-LCHlch(27.32, 41.83, 131.30°)
OKLaboklab(36.43% -0.0765 0.0697)
OKLCHoklch(36.43% 0.104 137.7)
XYZxyz(3.0631, 5.2084, 1.1023)
Luminance0.0521 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A09 #34094A
analogous
#404A09 #1F4A09 #094A14
triadic
#1F4A09 #091F4A #4A091F
tetradic
#1F4A09 #09404A #34094A #4A1409
square
#1F4A09 #09404A #34094A #4A1409
split-complementary
#1F4A09 #14094A #4A0940
monochromatic
#0B1B03 #0B1B03 #1F4A09 #368110 #4DB716

Accessibility & contrast

On white

10.29
#1F4A09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F4A09 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A09
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A09#FFFFFF#000000##FFFFFF
##1F4A091.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4300
Deuteranopia (green-blind)
#473F11
Tritanopia (blue-blind)
#1C473E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4a09;
/* rgb */ color: rgb(31, 74, 9);
/* oklch */ color: oklch(36.4% 0.104 137.7);
Tailwind
colors: {
  custom: {
    50: '#607d4f',
    500: '#1f4a09',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a09;
$custom-light: #607d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a09",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 9
  },
  "hsl": {
    "h": 99.692,
    "s": 78.313,
    "l": 16.275
  },
  "oklch": {
    "l": 0.36431,
    "c": 0.10351,
    "h": 137.7
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#1F4A09
secondary
#672787
accent
#33F5B3
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F4A09

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

Preview Lab → · Contrast checker → · Palette generator →

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