#1F4107#1F4107

#1F4107 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.7% C 0.092 H 135.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#1F4107
RGBrgb(31, 65, 7)
HSLhsl(95, 81%, 14%)
HSVhsv(95, 89%, 25%)
CMYKcmyk(52.3%, 0%, 89.2%, 74.5%)
CIE-LABlab(23.96, -23.66, 29.03)
CIE-LCHlch(23.96, 37.45, 129.18°)
OKLaboklab(33.66% -0.0661 0.0644)
OKLCHoklch(33.66% 0.092 135.7)
XYZxyz(2.4937, 4.0871, 0.8585)
Luminance0.0409 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4107 #290741
analogous
#3C4107 #1F4107 #07410C
triadic
#1F4107 #071F41 #41071F
tetradic
#1F4107 #073C41 #290741 #410C07
square
#1F4107 #073C41 #290741 #410C07
split-complementary
#1F4107 #0C0741 #41073C
monochromatic
#0D1C03 #0D1C03 #1F4107 #39780D #54B013

Accessibility & contrast

On white

11.55
#1F4107 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F4107 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4107
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4107#FFFFFF#000000##FFFFFF
##1F41071.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#3F380D
Tritanopia (blue-blind)
#1E3E36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f4107;
/* rgb */ color: rgb(31, 65, 7);
/* oklch */ color: oklch(33.7% 0.092 135.7);
Tailwind
colors: {
  custom: {
    50: '#5f764c',
    500: '#1f4107',
    950: '#000000',
  },
}
SCSS
$custom: #1f4107;
$custom-light: #5f764c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4107",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 7
  },
  "hsl": {
    "h": 95.172,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.33659,
    "c": 0.09226,
    "h": 135.7
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#1F4107
secondary
#5A2480
accent
#31F7A5
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F4107

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

Preview Lab → · Contrast checker → · Palette generator →

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