#1F4E1A#1F4E1A

#1F4E1A is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.8% C 0.096 H 141.8°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#1F4E1A
RGBrgb(31, 78, 26)
HSLhsl(114, 50%, 20%)
HSVhsv(114, 67%, 31%)
CMYKcmyk(60.3%, 0%, 66.7%, 69.4%)
CIE-LABlab(28.94, -27.74, 25.46)
CIE-LCHlch(28.94, 37.65, 137.46°)
OKLaboklab(37.81% -0.0757 0.0596)
OKLCHoklch(37.81% 0.096 141.8)
XYZxyz(3.4757, 5.8144, 1.9162)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E1A #491A4E
analogous
#394E1A #1F4E1A #1A4E2F
triadic
#1F4E1A #1A1F4E #4E1A1F
tetradic
#1F4E1A #1A394E #491A4E #4E2F1A
square
#1F4E1A #1A394E #491A4E #4E2F1A
split-complementary
#1F4E1A #2F1A4E #4E1A39
monochromatic
#091708 #0D200B #1F4E1A #317C29 #43AA39

Accessibility & contrast

On white

9.71
#1F4E1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E1A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E1A#FFFFFF#000000##FFFFFF
##1F4E1A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504714
Deuteranopia (green-blind)
#4A431E
Tritanopia (blue-blind)
#194C43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e1a;
/* rgb */ color: rgb(31, 78, 26);
/* oklch */ color: oklch(37.8% 0.096 141.8);
Tailwind
colors: {
  custom: {
    50: '#608059',
    500: '#1f4e1a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e1a;
$custom-light: #608059;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e1a",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 26
  },
  "hsl": {
    "h": 114.231,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.37811,
    "c": 0.09636,
    "h": 141.8
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#1F4E1A
secondary
#7E4084
accent
#4EDACC
background
#F5F7F5
surface
#EAEEE9
border
#C6C9C5
text
#050A03
muted
#797C78

Preview Lab

Preview with #1F4E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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