#1F4308#1F4308

#1F4308 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.3% C 0.094 H 136.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1F4308
RGBrgb(31, 67, 8)
HSLhsl(97, 79%, 15%)
HSVhsv(97, 88%, 26%)
CMYKcmyk(53.7%, 0%, 88.1%, 73.7%)
CIE-LABlab(24.71, -24.52, 29.36)
CIE-LCHlch(24.71, 38.25, 129.87°)
OKLaboklab(34.28% -0.0683 0.0652)
OKLCHoklch(34.28% 0.094 136.3)
XYZxyz(2.6160, 4.3230, 0.9263)
Luminance0.0432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4308 #2C0843
analogous
#3D4308 #1F4308 #08430E
triadic
#1F4308 #081F43 #43081F
tetradic
#1F4308 #083D43 #2C0843 #430E08
square
#1F4308 #083D43 #2C0843 #430E08
split-complementary
#1F4308 #0E0843 #43083D
monochromatic
#0D1B03 #0D1B03 #1F4308 #387A0F #52B015

Accessibility & contrast

On white

11.26
#1F4308 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F4308 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4308
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4308#FFFFFF#000000##FFFFFF
##1F43081.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D00
Deuteranopia (green-blind)
#413A0F
Tritanopia (blue-blind)
#1D4038
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f4308;
/* rgb */ color: rgb(31, 67, 8);
/* oklch */ color: oklch(34.3% 0.094 136.3);
Tailwind
colors: {
  custom: {
    50: '#5f774d',
    500: '#1f4308',
    950: '#000000',
  },
}
SCSS
$custom: #1f4308;
$custom-light: #5f774d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4308",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 8
  },
  "hsl": {
    "h": 96.61,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34281,
    "c": 0.09441,
    "h": 136.3
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#1F4308
secondary
#5E2581
accent
#33F5A9
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050901
muted
#797B77

Preview Lab

Preview with #1F4308

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

Preview Lab → · Contrast checker → · Palette generator →

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