#1F3907#1F3907

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

Color values

HEX#1F3907
RGBrgb(31, 57, 7)
HSLhsl(91, 78%, 13%)
HSVhsv(91, 88%, 22%)
CMYKcmyk(45.6%, 0%, 87.7%, 77.6%)
CIE-LABlab(20.95, -19.73, 25.88)
CIE-LCHlch(20.95, 32.55, 127.32°)
OKLaboklab(31.2% -0.0555 0.0584)
OKLCHoklch(31.2% 0.081 133.5)
XYZxyz(2.0665, 3.2328, 0.7161)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3907 #210739
analogous
#383907 #1F3907 #073908
triadic
#1F3907 #071F39 #39071F
tetradic
#1F3907 #073839 #210739 #390807
square
#1F3907 #073839 #210739 #390807
split-complementary
#1F3907 #080739 #390738
monochromatic
#0F1B03 #0F1B03 #1F3907 #3D700E #5AA614

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F3907#FFFFFF#000000##FFFFFF
##1F39071.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)
#3C3401
Deuteranopia (green-blind)
#38320C
Tritanopia (blue-blind)
#1F3630
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f3907;
/* rgb */ color: rgb(31, 57, 7);
/* oklch */ color: oklch(31.2% 0.081 133.5);
Tailwind
colors: {
  custom: {
    50: '#5d6f4b',
    500: '#1f3907',
    950: '#000000',
  },
}
SCSS
$custom: #1f3907;
$custom-light: #5d6f4b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3907",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 7
  },
  "hsl": {
    "h": 91.2,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.31195,
    "c": 0.08058,
    "h": 133.5
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#1F3907
secondary
#502379
accent
#33F598
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3907

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

Preview Lab → · Contrast checker → · Palette generator →

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