#1F4E2A#1F4E2A

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

Color values

HEX#1F4E2A
RGBrgb(31, 78, 42)
HSLhsl(134, 43%, 21%)
HSVhsv(134, 60%, 31%)
CMYKcmyk(60.3%, 0%, 46.2%, 69.4%)
CIE-LABlab(29.18, -25.16, 16.59)
CIE-LCHlch(29.18, 30.14, 146.60°)
OKLaboklab(38.08% -0.0682 0.041)
OKLCHoklch(38.08% 0.08 149)
XYZxyz(3.7071, 5.9069, 3.1348)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E2A #4E1F43
analogous
#2C4E1F #1F4E2A #1F4E42
triadic
#1F4E2A #2A1F4E #4E2A1F
tetradic
#1F4E2A #1F2C4E #4E1F43 #4E421F
square
#1F4E2A #1F2C4E #4E1F43 #4E421F
split-complementary
#1F4E2A #421F4E #4E1F2C
monochromatic
#09160C #0E2212 #1F4E2A #307A42 #42A659

Accessibility & contrast

On white

9.63
#1F4E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F4E2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E2A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E2A#FFFFFF#000000##FFFFFF
##1F4E2A1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4727
Deuteranopia (green-blind)
#48432C
Tritanopia (blue-blind)
#144D45
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4e2a;
/* rgb */ color: rgb(31, 78, 42);
/* oklch */ color: oklch(38.1% 0.080 149.0);
Tailwind
colors: {
  custom: {
    50: '#5f8064',
    500: '#1f4e2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e2a;
$custom-light: #5f8064;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e2a",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 42
  },
  "hsl": {
    "h": 134.043,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.38083,
    "c": 0.07954,
    "h": 149
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#1F4E2A
secondary
#834675
accent
#55B5D3
background
#F5F7F6
surface
#EAEEEB
border
#C6C9C6
text
#050A05
muted
#797C7A

Preview Lab

Preview with #1F4E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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