#1F400D#1F400D

#1F400D is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.4% C 0.087 H 136.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1F400D
RGBrgb(31, 64, 13)
HSLhsl(99, 66%, 15%)
HSVhsv(99, 80%, 25%)
CMYKcmyk(51.6%, 0%, 79.7%, 74.9%)
CIE-LABlab(23.63, -22.69, 26.16)
CIE-LCHlch(23.63, 34.63, 130.94°)
OKLaboklab(33.4% -0.063 0.0594)
OKLCHoklch(33.4% 0.087 136.7)
XYZxyz(2.4710, 3.9870, 1.0201)
Luminance0.0399 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F400D #2E0D40
analogous
#38400D #1F400D #0D4015
triadic
#1F400D #0D1F40 #400D1F
tetradic
#1F400D #0D3840 #2E0D40 #40150D
square
#1F400D #0D3840 #2E0D40 #40150D
split-complementary
#1F400D #150D40 #400D38
monochromatic
#0C1905 #0C1905 #1F400D #387317 #50A622

Accessibility & contrast

On white

11.68
#1F400D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F400D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F400D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F400D#FFFFFF#000000##FFFFFF
##1F400D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A06
Deuteranopia (green-blind)
#3E3712
Tritanopia (blue-blind)
#1D3D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f400d;
/* rgb */ color: rgb(31, 64, 13);
/* oklch */ color: oklch(33.4% 0.087 136.7);
Tailwind
colors: {
  custom: {
    50: '#5e754f',
    500: '#1f400d',
    950: '#000000',
  },
}
SCSS
$custom: #1f400d;
$custom-light: #5e754f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f400d",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 13
  },
  "hsl": {
    "h": 98.824,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.33403,
    "c": 0.08654,
    "h": 136.7
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#1F400D
secondary
#602D7C
accent
#3FE9AD
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #1F400D

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

Preview Lab → · Contrast checker → · Palette generator →

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