#1F400C#1F400C

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

Color values

HEX#1F400C
RGBrgb(31, 64, 12)
HSLhsl(98, 68%, 15%)
HSVhsv(98, 81%, 25%)
CMYKcmyk(51.6%, 0%, 81.2%, 74.9%)
CIE-LABlab(23.62, -22.78, 26.61)
CIE-LCHlch(23.62, 35.03, 130.57°)
OKLaboklab(33.39% -0.0633 0.0601)
OKLCHoklch(33.39% 0.087 136.5)
XYZxyz(2.4648, 3.9845, 0.9870)
Luminance0.0398 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F400C #2D0C40
analogous
#39400C #1F400C #0C4013
triadic
#1F400C #0C1F40 #400C1F
tetradic
#1F400C #0C3940 #2D0C40 #40130C
square
#1F400C #0C3940 #2D0C40 #40130C
split-complementary
#1F400C #130C40 #400C39
monochromatic
#0C1A05 #0C1A05 #1F400C #387416 #51A71F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F400C#FFFFFF#000000##FFFFFF
##1F400C1.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)
#423A04
Deuteranopia (green-blind)
#3E3711
Tritanopia (blue-blind)
#1D3D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f400c;
/* rgb */ color: rgb(31, 64, 12);
/* oklch */ color: oklch(33.4% 0.087 136.5);
Tailwind
colors: {
  custom: {
    50: '#5e754e',
    500: '#1f400c',
    950: '#000000',
  },
}
SCSS
$custom: #1f400c;
$custom-light: #5e754e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f400c",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 98.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33394,
    "c": 0.08731,
    "h": 136.5
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#1F400C
secondary
#5F2C7C
accent
#3DEBAB
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #1F400C

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

Preview Lab → · Contrast checker → · Palette generator →

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