#1F420D#1F420D

#1F420D is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.0% C 0.090 H 137.1°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#1F420D
RGBrgb(31, 66, 13)
HSLhsl(100, 67%, 15%)
HSVhsv(100, 80%, 26%)
CMYKcmyk(53%, 0%, 80.3%, 74.1%)
CIE-LABlab(24.38, -23.65, 26.93)
CIE-LCHlch(24.38, 35.84, 131.29°)
OKLaboklab(34.02% -0.0656 0.061)
OKLCHoklch(34.02% 0.09 137.1)
XYZxyz(2.5859, 4.2166, 1.0583)
Luminance0.0422 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F420D #300D42
analogous
#39420D #1F420D #0D4215
triadic
#1F420D #0D1F42 #420D1F
tetradic
#1F420D #0D3942 #300D42 #42150D
square
#1F420D #0D3942 #300D42 #42150D
split-complementary
#1F420D #150D42 #420D39
monochromatic
#0C1A05 #0C1A05 #1F420D #377517 #4FA821

Accessibility & contrast

On white

11.39
#1F420D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F420D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F420D
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F420D#FFFFFF#000000##FFFFFF
##1F420D1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C05
Deuteranopia (green-blind)
#403912
Tritanopia (blue-blind)
#1D3F38
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f420d;
/* rgb */ color: rgb(31, 66, 13);
/* oklch */ color: oklch(34.0% 0.090 137.1);
Tailwind
colors: {
  custom: {
    50: '#5f774f',
    500: '#1f420d',
    950: '#000000',
  },
}
SCSS
$custom: #1f420d;
$custom-light: #5f774f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f420d",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 13
  },
  "hsl": {
    "h": 99.623,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34016,
    "c": 0.08954,
    "h": 137.1
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#1F420D
secondary
#622D7E
accent
#3EEAB0
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #1F420D

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

Preview Lab → · Contrast checker → · Palette generator →

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