#1F4D0B#1F4D0B

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

Color values

HEX#1F4D0B
RGBrgb(31, 77, 11)
HSLhsl(102, 75%, 17%)
HSVhsv(102, 86%, 30%)
CMYKcmyk(59.7%, 0%, 85.7%, 69.8%)
CIE-LABlab(28.44, -28.78, 31.76)
CIE-LCHlch(28.44, 42.86, 132.19°)
OKLaboklab(37.36% -0.0795 0.0707)
OKLCHoklch(37.36% 0.106 138.4)
XYZxyz(3.2792, 5.6230, 1.2291)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D0B #390B4D
analogous
#404D0B #1F4D0B #0B4D18
triadic
#1F4D0B #0B1F4D #4D0B1F
tetradic
#1F4D0B #0B404D #390B4D #4D180B
square
#1F4D0B #0B404D #390B4D #4D180B
split-complementary
#1F4D0B #180B4D #4D0B40
monochromatic
#0B1B04 #0B1B04 #1F4D0B #358313 #4AB81A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4D0B#FFFFFF#000000##FFFFFF
##1F4D0B1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.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: #1f4d0b;
/* rgb */ color: rgb(31, 77, 11);
/* oklch */ color: oklch(37.4% 0.106 138.4);
Tailwind
colors: {
  custom: {
    50: '#617f50',
    500: '#1f4d0b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d0b;
$custom-light: #617f50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d0b",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 11
  },
  "hsl": {
    "h": 101.818,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.10643,
    "h": 138.4
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#1F4D0B
secondary
#6C2B89
accent
#36F2B9
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F4D0B

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

Preview Lab → · Contrast checker → · Palette generator →

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