#1F3708#1F3708

#1F3708 is a dark, moderate yellow-green. Relative luminance 0.030; OKLCH L 30.6% C 0.077 H 133.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#1F3708
RGBrgb(31, 55, 8)
HSLhsl(91, 75%, 12%)
HSVhsv(91, 85%, 22%)
CMYKcmyk(43.6%, 0%, 85.5%, 78.4%)
CIE-LABlab(20.21, -18.60, 24.65)
CIE-LCHlch(20.21, 30.88, 127.05°)
OKLaboklab(30.59% -0.0523 0.0561)
OKLCHoklch(30.59% 0.077 133)
XYZxyz(1.9751, 3.0411, 0.7126)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3708 #200837
analogous
#373708 #1F3708 #083708
triadic
#1F3708 #081F37 #37081F
tetradic
#1F3708 #083737 #200837 #370808
square
#1F3708 #083737 #200837 #370808
split-complementary
#1F3708 #080837 #370837
monochromatic
#0F1B04 #0F1B04 #1F3708 #3D6C10 #5BA218

Accessibility & contrast

On white

13.06
#1F3708 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F3708 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3708
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3708#FFFFFF#000000##FFFFFF
##1F37081.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3202
Deuteranopia (green-blind)
#36300C
Tritanopia (blue-blind)
#1F342E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f3708;
/* rgb */ color: rgb(31, 55, 8);
/* oklch */ color: oklch(30.6% 0.077 133.0);
Tailwind
colors: {
  custom: {
    50: '#5d6e4b',
    500: '#1f3708',
    950: '#000000',
  },
}
SCSS
$custom: #1f3708;
$custom-light: #5d6e4b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3708",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 8
  },
  "hsl": {
    "h": 90.638,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.30589,
    "c": 0.07672,
    "h": 133
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#1F3708
secondary
#4E2576
accent
#37F196
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3708

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

Preview Lab → · Contrast checker → · Palette generator →

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