#1F4D0F#1F4D0F

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

Color values

HEX#1F4D0F
RGBrgb(31, 77, 15)
HSLhsl(105, 67%, 18%)
HSVhsv(105, 81%, 30%)
CMYKcmyk(59.7%, 0%, 80.5%, 69.8%)
CIE-LABlab(28.47, -28.47, 30.21)
CIE-LCHlch(28.47, 41.51, 133.31°)
OKLaboklab(37.39% -0.0784 0.0682)
OKLCHoklch(37.39% 0.104 139)
XYZxyz(3.3050, 5.6333, 1.3650)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D0F #3D0F4D
analogous
#3E4D0F #1F4D0F #0F4D1E
triadic
#1F4D0F #0F1F4D #4D0F1F
tetradic
#1F4D0F #0F3E4D #3D0F4D #4D1E0F
square
#1F4D0F #0F3E4D #3D0F4D #4D1E0F
split-complementary
#1F4D0F #1E0F4D #4D0F3E
monochromatic
#0A1A05 #0A1A05 #1F4D0F #348019 #48B323

Accessibility & contrast

On white

9.87
#1F4D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4D0F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D0F#FFFFFF#000000##FFFFFF
##1F4D0F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4d0f;
/* rgb */ color: rgb(31, 77, 15);
/* oklch */ color: oklch(37.4% 0.104 139.0);
Tailwind
colors: {
  custom: {
    50: '#617f52',
    500: '#1f4d0f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d0f;
$custom-light: #617f52;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d0f",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 104.516,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37389,
    "c": 0.1039,
    "h": 139
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#1F4D0F
secondary
#713187
accent
#3EEABE
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1F4D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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