#1F4E1F#1F4E1F

#1F4E1F is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.9% C 0.091 H 143.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#1F4E1F
RGBrgb(31, 78, 31)
HSLhsl(120, 43%, 21%)
HSVhsv(120, 60%, 31%)
CMYKcmyk(60.3%, 0%, 60.3%, 69.4%)
CIE-LABlab(29.00, -27.05, 22.81)
CIE-LCHlch(29.00, 35.39, 139.85°)
OKLaboklab(37.88% -0.0735 0.0544)
OKLCHoklch(37.88% 0.091 143.5)
XYZxyz(3.5366, 5.8387, 2.2367)
Luminance0.0584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E1F #4E1F4E
analogous
#374E1F #1F4E1F #1F4E37
triadic
#1F4E1F #1F1F4E #4E1F1F
tetradic
#1F4E1F #1F374E #4E1F4E #4E371F
square
#1F4E1F #1F374E #4E1F4E #4E371F
split-complementary
#1F4E1F #371F4E #4E1F37
monochromatic
#091609 #0E220E #1F4E1F #307A30 #42A642

Accessibility & contrast

On white

9.69
#1F4E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F4E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E1F
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E1F#FFFFFF#000000##FFFFFF
##1F4E1F1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50471B
Deuteranopia (green-blind)
#494322
Tritanopia (blue-blind)
#184C43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e1f;
/* rgb */ color: rgb(31, 78, 31);
/* oklch */ color: oklch(37.9% 0.091 143.5);
Tailwind
colors: {
  custom: {
    50: '#60805c',
    500: '#1f4e1f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e1f;
$custom-light: #60805c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e1f",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.37883,
    "c": 0.09145,
    "h": 143.5
  },
  "luminance": 0.05839
}

Semantic roles & 50–950 ramp

primary
#1F4E1F
secondary
#834683
accent
#55D3D3
background
#F5F7F5
surface
#EAEEE9
border
#C6C9C5
text
#050A04
muted
#797C79

Preview Lab

Preview with #1F4E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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