#1F4E12#1F4E12

#1F4E12 is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.7% C 0.103 H 139.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#1F4E12
RGBrgb(31, 78, 18)
HSLhsl(107, 63%, 19%)
HSVhsv(107, 77%, 31%)
CMYKcmyk(60.3%, 0%, 76.9%, 69.4%)
CIE-LABlab(28.86, -28.64, 29.30)
CIE-LCHlch(28.86, 40.97, 134.35°)
OKLaboklab(37.72% -0.0787 0.0667)
OKLCHoklch(37.72% 0.103 139.7)
XYZxyz(3.3985, 5.7835, 1.5094)
Luminance0.0578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E12 #41124E
analogous
#3D4E12 #1F4E12 #124E23
triadic
#1F4E12 #121F4E #4E121F
tetradic
#1F4E12 #123D4E #41124E #4E2312
square
#1F4E12 #123D4E #41124E #4E2312
split-complementary
#1F4E12 #23124E #4E123D
monochromatic
#0A1906 #0B1C07 #1F4E12 #33801D #47B129

Accessibility & contrast

On white

9.74
#1F4E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F4E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E12
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E12#FFFFFF#000000##FFFFFF
##1F4E121.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504609
Deuteranopia (green-blind)
#4A4318
Tritanopia (blue-blind)
#1A4B42
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e12;
/* rgb */ color: rgb(31, 78, 18);
/* oklch */ color: oklch(37.7% 0.103 139.7);
Tailwind
colors: {
  custom: {
    50: '#618054',
    500: '#1f4e12',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e12;
$custom-light: #618054;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e12",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 107,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.3772,
    "c": 0.10315,
    "h": 139.7
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#1F4E12
secondary
#753587
accent
#42E6C2
background
#F5F7F4
surface
#EAEEE8
border
#C6C9C4
text
#050A03
muted
#797C78

Preview Lab

Preview with #1F4E12

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

Preview Lab → · Contrast checker → · Palette generator →

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