#1F4A2D#1F4A2D

#1F4A2D is a dark, moderate green. Relative luminance 0.054; OKLCH L 37.0% C 0.069 H 152.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4A2D
RGBrgb(31, 74, 45)
HSLhsl(140, 41%, 21%)
HSVhsv(140, 58%, 29%)
CMYKcmyk(58.1%, 0%, 39.2%, 71%)
CIE-LABlab(27.79, -22.59, 12.91)
CIE-LCHlch(27.79, 26.01, 150.25°)
OKLaboklab(36.96% -0.0614 0.0324)
OKLCHoklch(36.96% 0.069 152.2)
XYZxyz(3.4873, 5.3780, 3.3364)
Luminance0.0538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A2D #4A1F3C
analogous
#264A1F #1F4A2D #1F4A42
triadic
#1F4A2D #2D1F4A #4A2D1F
tetradic
#1F4A2D #1F264A #4A1F3C #4A421F
square
#1F4A2D #1F264A #4A1F3C #4A421F
split-complementary
#1F4A2D #421F4A #4A1F26
monochromatic
#09160D #0D1F13 #1F4A2D #317547 #43A061

Accessibility & contrast

On white

10.12
#1F4A2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F4A2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A2D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A2D#FFFFFF#000000##FFFFFF
##1F4A2D1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A442B
Deuteranopia (green-blind)
#44402F
Tritanopia (blue-blind)
#154943
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f4a2d;
/* rgb */ color: rgb(31, 74, 45);
/* oklch */ color: oklch(37.0% 0.069 152.2);
Tailwind
colors: {
  custom: {
    50: '#5f7d66',
    500: '#1f4a2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a2d;
$custom-light: #5f7d66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a2d",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 45
  },
  "hsl": {
    "h": 139.535,
    "s": 40.952,
    "l": 20.588
  },
  "oklch": {
    "l": 0.36964,
    "c": 0.06939,
    "h": 152.2
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#1F4A2D
secondary
#7F466C
accent
#57A9D1
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#050906
muted
#797B7A

Preview Lab

Preview with #1F4A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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