#1F4F0B#1F4F0B

#1F4F0B is a dark, moderate green. Relative luminance 0.059; OKLCH L 38.0% C 0.109 H 138.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#1F4F0B
RGBrgb(31, 79, 11)
HSLhsl(102, 76%, 18%)
HSVhsv(102, 86%, 31%)
CMYKcmyk(60.8%, 0%, 86.1%, 69%)
CIE-LABlab(29.18, -29.64, 32.46)
CIE-LCHlch(29.18, 43.95, 132.40°)
OKLaboklab(37.97% -0.0818 0.0722)
OKLCHoklch(37.97% 0.109 138.6)
XYZxyz(3.4213, 5.9072, 1.2764)
Luminance0.0591 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F0B #3B0B4F
analogous
#414F0B #1F4F0B #0B4F19
triadic
#1F4F0B #0B1F4F #4F0B1F
tetradic
#1F4F0B #0B414F #3B0B4F #4F190B
square
#1F4F0B #0B414F #3B0B4F #4F190B
split-complementary
#1F4F0B #190B4F #4F0B41
monochromatic
#0B1B04 #0B1B04 #1F4F0B #348512 #49BA1A

Accessibility & contrast

On white

9.63
#1F4F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F4F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F0B
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F0B#FFFFFF#000000##FFFFFF
##1F4F0B1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524700
Deuteranopia (green-blind)
#4C4313
Tritanopia (blue-blind)
#1A4C42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4f0b;
/* rgb */ color: rgb(31, 79, 11);
/* oklch */ color: oklch(38.0% 0.109 138.6);
Tailwind
colors: {
  custom: {
    50: '#618150',
    500: '#1f4f0b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f0b;
$custom-light: #618150;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f0b",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 11
  },
  "hsl": {
    "h": 102.353,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37966,
    "c": 0.10914,
    "h": 138.6
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#1F4F0B
secondary
#6F2B8B
accent
#36F2BB
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F4F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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