#1F400B#1F400B

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

Color values

HEX#1F400B
RGBrgb(31, 64, 11)
HSLhsl(97, 71%, 15%)
HSVhsv(97, 83%, 25%)
CMYKcmyk(51.6%, 0%, 82.8%, 74.9%)
CIE-LABlab(23.61, -22.87, 27.04)
CIE-LCHlch(23.61, 35.41, 130.22°)
OKLaboklab(33.39% -0.0636 0.0609)
OKLCHoklch(33.39% 0.088 136.3)
XYZxyz(2.4588, 3.9821, 0.9556)
Luminance0.0398 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F400B #2C0B40
analogous
#3A400B #1F400B #0B4011
triadic
#1F400B #0B1F40 #400B1F
tetradic
#1F400B #0B3A40 #2C0B40 #40110B
square
#1F400B #0B3A40 #2C0B40 #40110B
split-complementary
#1F400B #110B40 #400B3A
monochromatic
#0D1A04 #0D1A04 #1F400B #387414 #52A81D

Accessibility & contrast

On white

11.69
#1F400B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F400B
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F400B#FFFFFF#000000##FFFFFF
##1F400B1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A03
Deuteranopia (green-blind)
#3E3710
Tritanopia (blue-blind)
#1E3D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f400b;
/* rgb */ color: rgb(31, 64, 11);
/* oklch */ color: oklch(33.4% 0.088 136.3);
Tailwind
colors: {
  custom: {
    50: '#5e754e',
    500: '#1f400b',
    950: '#000000',
  },
}
SCSS
$custom: #1f400b;
$custom-light: #5e754e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f400b",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 11
  },
  "hsl": {
    "h": 97.358,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33385,
    "c": 0.08804,
    "h": 136.3
  },
  "luminance": 0.03982
}

Semantic roles & 50–950 ramp

primary
#1F400B
secondary
#5E2A7D
accent
#3AEDAA
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #1F400B

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

Preview Lab → · Contrast checker → · Palette generator →

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