#1F4D0C#1F4D0C

#1F4D0C is a dark, moderate green. Relative luminance 0.056; OKLCH L 37.4% C 0.106 H 138.5°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#1F4D0C
RGBrgb(31, 77, 12)
HSLhsl(102, 73%, 17%)
HSVhsv(102, 84%, 30%)
CMYKcmyk(59.7%, 0%, 84.4%, 69.8%)
CIE-LABlab(28.45, -28.71, 31.39)
CIE-LCHlch(28.45, 42.54, 132.45°)
OKLaboklab(37.36% -0.0793 0.0701)
OKLCHoklch(37.36% 0.106 138.5)
XYZxyz(3.2852, 5.6253, 1.2604)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D0C #3A0C4D
analogous
#3F4D0C #1F4D0C #0C4D1A
triadic
#1F4D0C #0C1F4D #4D0C1F
tetradic
#1F4D0C #0C3F4D #3A0C4D #4D1A0C
square
#1F4D0C #0C3F4D #3A0C4D #4D1A0C
split-complementary
#1F4D0C #1A0C4D #4D0C3F
monochromatic
#0B1A04 #0B1A04 #1F4D0C #348214 #4AB71D

Accessibility & contrast

On white

9.88
#1F4D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F4D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D0C
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D0C#FFFFFF#000000##FFFFFF
##1F4D0C1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504501
Deuteranopia (green-blind)
#4A4213
Tritanopia (blue-blind)
#1B4A41
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f4d0c;
/* rgb */ color: rgb(31, 77, 12);
/* oklch */ color: oklch(37.4% 0.106 138.5);
Tailwind
colors: {
  custom: {
    50: '#617f50',
    500: '#1f4d0c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d0c;
$custom-light: #617f50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d0c",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 102.462,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37365,
    "c": 0.10585,
    "h": 138.5
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#1F4D0C
secondary
#6E2C89
accent
#38F0BA
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1F4D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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