#1F4D0A#1F4D0A

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

Color values

HEX#1F4D0A
RGBrgb(31, 77, 10)
HSLhsl(101, 77%, 17%)
HSVhsv(101, 87%, 30%)
CMYKcmyk(59.7%, 0%, 87%, 69.8%)
CIE-LABlab(28.43, -28.85, 32.11)
CIE-LCHlch(28.43, 43.17, 131.94°)
OKLaboklab(37.35% -0.0798 0.0713)
OKLCHoklch(37.35% 0.107 138.2)
XYZxyz(3.2736, 5.6207, 1.1995)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D0A #380A4D
analogous
#414D0A #1F4D0A #0A4D17
triadic
#1F4D0A #0A1F4D #4D0A1F
tetradic
#1F4D0A #0A414D #380A4D #4D170A
square
#1F4D0A #0A414D #380A4D #4D170A
split-complementary
#1F4D0A #170A4D #4D0A41
monochromatic
#0B1B04 #0B1B04 #1F4D0A #358311 #4BB918

Accessibility & contrast

On white

9.89
#1F4D0A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F4D0A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D0A
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D0A#FFFFFF#000000##FFFFFF
##1F4D0A1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4d0a;
/* rgb */ color: rgb(31, 77, 10);
/* oklch */ color: oklch(37.4% 0.107 138.2);
Tailwind
colors: {
  custom: {
    50: '#617f50',
    500: '#1f4d0a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d0a;
$custom-light: #617f50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d0a",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 10
  },
  "hsl": {
    "h": 101.194,
    "s": 77.011,
    "l": 17.059
  },
  "oklch": {
    "l": 0.37352,
    "c": 0.107,
    "h": 138.2
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#1F4D0A
secondary
#6B298A
accent
#34F4B8
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F4D0A

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

Preview Lab → · Contrast checker → · Palette generator →

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