#1F4E17#1F4E17

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

Color values

HEX#1F4E17
RGBrgb(31, 78, 23)
HSLhsl(111, 54%, 20%)
HSVhsv(111, 71%, 31%)
CMYKcmyk(60.3%, 0%, 70.5%, 69.4%)
CIE-LABlab(28.91, -28.11, 26.96)
CIE-LCHlch(28.91, 38.95, 136.19°)
OKLaboklab(37.77% -0.0769 0.0625)
OKLCHoklch(37.77% 0.099 140.9)
XYZxyz(3.4440, 5.8017, 1.7488)
Luminance0.0580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E17 #46174E
analogous
#3A4E17 #1F4E17 #174E2B
triadic
#1F4E17 #171F4E #4E171F
tetradic
#1F4E17 #173A4E #46174E #4E2B17
square
#1F4E17 #173A4E #46174E #4E2B17
split-complementary
#1F4E17 #2B174E #4E173A
monochromatic
#091807 #0C1F09 #1F4E17 #327D25 #45AD33

Accessibility & contrast

On white

9.72
#1F4E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E17
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E17#FFFFFF#000000##FFFFFF
##1F4E171.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504710
Deuteranopia (green-blind)
#4A431C
Tritanopia (blue-blind)
#194B43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e17;
/* rgb */ color: rgb(31, 78, 23);
/* oklch */ color: oklch(37.8% 0.099 140.9);
Tailwind
colors: {
  custom: {
    50: '#608057',
    500: '#1f4e17',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e17;
$custom-light: #608057;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e17",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 111.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.09907,
    "h": 140.9
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#1F4E17
secondary
#7A3C85
accent
#4ADEC8
background
#F5F7F5
surface
#EAEEE9
border
#C6C9C5
text
#050A03
muted
#797C78

Preview Lab

Preview with #1F4E17

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

Preview Lab → · Contrast checker → · Palette generator →

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