#1F3908#1F3908

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

Color values

HEX#1F3908
RGBrgb(31, 57, 8)
HSLhsl(92, 75%, 13%)
HSVhsv(92, 86%, 22%)
CMYKcmyk(45.6%, 0%, 86%, 77.6%)
CIE-LABlab(20.96, -19.64, 25.49)
CIE-LCHlch(20.96, 32.18, 127.62°)
OKLaboklab(31.21% -0.0551 0.0577)
OKLCHoklch(31.21% 0.08 133.7)
XYZxyz(2.0720, 3.2350, 0.7449)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3908 #220839
analogous
#373908 #1F3908 #08390A
triadic
#1F3908 #081F39 #39081F
tetradic
#1F3908 #083739 #220839 #390A08
square
#1F3908 #083739 #220839 #390A08
split-complementary
#1F3908 #0A0839 #390837
monochromatic
#0F1B04 #0F1B04 #1F3908 #3C6F10 #59A417

Accessibility & contrast

On white

12.75
#1F3908 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3908
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3908#FFFFFF#000000##FFFFFF
##1F39081.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3402
Deuteranopia (green-blind)
#38320D
Tritanopia (blue-blind)
#1F3630
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f3908;
/* rgb */ color: rgb(31, 57, 8);
/* oklch */ color: oklch(31.2% 0.080 133.7);
Tailwind
colors: {
  custom: {
    50: '#5d6f4b',
    500: '#1f3908',
    950: '#000000',
  },
}
SCSS
$custom: #1f3908;
$custom-light: #5d6f4b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3908",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 8
  },
  "hsl": {
    "h": 91.837,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.31205,
    "c": 0.07978,
    "h": 133.7
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#1F3908
secondary
#512578
accent
#36F29A
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3908

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

Preview Lab → · Contrast checker → · Palette generator →

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