#1F3906#1F3906

#1F3906 is a dark, moderate yellow-green. Relative luminance 0.032; OKLCH L 31.2% C 0.081 H 133.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1F3906
RGBrgb(31, 57, 6)
HSLhsl(91, 81%, 12%)
HSVhsv(91, 89%, 22%)
CMYKcmyk(45.6%, 0%, 89.5%, 77.6%)
CIE-LABlab(20.94, -19.82, 26.28)
CIE-LCHlch(20.94, 32.92, 127.02°)
OKLaboklab(31.19% -0.0558 0.0592)
OKLCHoklch(31.19% 0.081 133.3)
XYZxyz(2.0610, 3.2306, 0.6872)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3906 #200639
analogous
#393906 #1F3906 #063906
triadic
#1F3906 #061F39 #39061F
tetradic
#1F3906 #063939 #200639 #390606
square
#1F3906 #063939 #200639 #390606
split-complementary
#1F3906 #060639 #390639
monochromatic
#0F1C03 #0F1C03 #1F3906 #3D700C #5BA812

Accessibility & contrast

On white

12.76
#1F3906 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F3906 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3906
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3906#FFFFFF#000000##FFFFFF
##1F39061.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3400
Deuteranopia (green-blind)
#38320B
Tritanopia (blue-blind)
#1F362F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f3906;
/* rgb */ color: rgb(31, 57, 6);
/* oklch */ color: oklch(31.2% 0.081 133.3);
Tailwind
colors: {
  custom: {
    50: '#5e6f4a',
    500: '#1f3906',
    950: '#000000',
  },
}
SCSS
$custom: #1f3906;
$custom-light: #5e6f4a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3906",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 6
  },
  "hsl": {
    "h": 90.588,
    "s": 80.952,
    "l": 12.353
  },
  "oklch": {
    "l": 0.31186,
    "c": 0.0814,
    "h": 133.3
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#1F3906
secondary
#4E2279
accent
#30F796
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3906

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

Preview Lab → · Contrast checker → · Palette generator →

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