#1F3D08#1F3D08

#1F3D08 is a dark, moderate yellow-green. Relative luminance 0.036; OKLCH L 32.4% C 0.086 H 134.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#1F3D08
RGBrgb(31, 61, 8)
HSLhsl(94, 77%, 14%)
HSVhsv(94, 87%, 24%)
CMYKcmyk(49.2%, 0%, 86.9%, 76.1%)
CIE-LABlab(22.47, -21.65, 27.10)
CIE-LCHlch(22.47, 34.68, 128.62°)
OKLaboklab(32.44% -0.0606 0.0607)
OKLCHoklch(32.44% 0.086 134.9)
XYZxyz(2.2776, 3.6462, 0.8135)
Luminance0.0365 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D08 #26083D
analogous
#393D08 #1F3D08 #083D0B
triadic
#1F3D08 #081F3D #3D081F
tetradic
#1F3D08 #08393D #26083D #3D0B08
square
#1F3D08 #08393D #26083D #3D0B08
split-complementary
#1F3D08 #0B083D #3D0839
monochromatic
#0E1B04 #0E1B04 #1F3D08 #3A730F #56A916

Accessibility & contrast

On white

12.14
#1F3D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F3D08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D08
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D08#FFFFFF#000000##FFFFFF
##1F3D081.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403701
Deuteranopia (green-blind)
#3C350D
Tritanopia (blue-blind)
#1E3A33
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f3d08;
/* rgb */ color: rgb(31, 61, 8);
/* oklch */ color: oklch(32.4% 0.086 134.9);
Tailwind
colors: {
  custom: {
    50: '#5e734c',
    500: '#1f3d08',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d08;
$custom-light: #5e734c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d08",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 8
  },
  "hsl": {
    "h": 93.962,
    "s": 76.812,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32437,
    "c": 0.08576,
    "h": 134.9
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#1F3D08
secondary
#56257C
accent
#34F3A1
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F3D08

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

Preview Lab → · Contrast checker → · Palette generator →

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