#1F4F2E#1F4F2E

#1F4F2E is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.5% C 0.077 H 151.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#1F4F2E
RGBrgb(31, 79, 46)
HSLhsl(139, 44%, 22%)
HSVhsv(139, 61%, 31%)
CMYKcmyk(60.8%, 0%, 41.8%, 69%)
CIE-LABlab(29.61, -24.84, 14.72)
CIE-LCHlch(29.61, 28.87, 149.34°)
OKLaboklab(38.47% -0.0673 0.0367)
OKLCHoklch(38.47% 0.077 151.4)
XYZxyz(3.8539, 6.0802, 3.5547)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F2E #4F1F40
analogous
#284F1F #1F4F2E #1F4F46
triadic
#1F4F2E #2E1F4F #4F2E1F
tetradic
#1F4F2E #1F284F #4F1F40 #4F461F
square
#1F4F2E #1F284F #4F1F40 #4F461F
split-complementary
#1F4F2E #461F4F #4F1F28
monochromatic
#09160D #0E2314 #1F4F2E #307B48 #41A761

Accessibility & contrast

On white

9.48
#1F4F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F4F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F2E
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F2E#FFFFFF#000000##FFFFFF
##1F4F2E1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F492C
Deuteranopia (green-blind)
#494430
Tritanopia (blue-blind)
#134E47
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4f2e;
/* rgb */ color: rgb(31, 79, 46);
/* oklch */ color: oklch(38.5% 0.077 151.4);
Tailwind
colors: {
  custom: {
    50: '#5f8167',
    500: '#1f4f2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f2e;
$custom-light: #5f8167;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f2e",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 46
  },
  "hsl": {
    "h": 138.75,
    "s": 43.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.38467,
    "c": 0.0767,
    "h": 151.4
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#1F4F2E
secondary
#844670
accent
#54ACD3
background
#F5F7F6
surface
#EAEEEB
border
#C6C9C6
text
#050A06
muted
#797C7A

Preview Lab

Preview with #1F4F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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