#1F4E2D#1F4E2D

#1F4E2D is a dark, moderate green. Relative luminance 0.059; OKLCH L 38.1% C 0.076 H 151.0°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#1F4E2D
RGBrgb(31, 78, 45)
HSLhsl(138, 43%, 21%)
HSVhsv(138, 60%, 31%)
CMYKcmyk(60.3%, 0%, 42.3%, 69.4%)
CIE-LABlab(29.23, -24.56, 14.83)
CIE-LCHlch(29.23, 28.69, 148.87°)
OKLaboklab(38.15% -0.0666 0.037)
OKLCHoklch(38.15% 0.076 151)
XYZxyz(3.7628, 5.9292, 3.4283)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E2D #4E1F40
analogous
#294E1F #1F4E2D #1F4E45
triadic
#1F4E2D #2D1F4E #4E2D1F
tetradic
#1F4E2D #1F294E #4E1F40 #4E451F
square
#1F4E2D #1F294E #4E1F40 #4E451F
split-complementary
#1F4E2D #451F4E #4E1F29
monochromatic
#09160D #0E2214 #1F4E2D #307A46 #42A660

Accessibility & contrast

On white

9.61
#1F4E2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F4E2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E2D
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E2D#FFFFFF#000000##FFFFFF
##1F4E2D1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E482B
Deuteranopia (green-blind)
#48432F
Tritanopia (blue-blind)
#134D46
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4e2d;
/* rgb */ color: rgb(31, 78, 45);
/* oklch */ color: oklch(38.1% 0.076 151.0);
Tailwind
colors: {
  custom: {
    50: '#5f8066',
    500: '#1f4e2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e2d;
$custom-light: #5f8066;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e2d",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 45
  },
  "hsl": {
    "h": 137.872,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.38148,
    "c": 0.07616,
    "h": 151
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#1F4E2D
secondary
#834671
accent
#55ADD3
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#050A06
muted
#797C7A

Preview Lab

Preview with #1F4E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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