#1F4E0D#1F4E0D

#1F4E0D is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.7% C 0.107 H 138.8°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#1F4E0D
RGBrgb(31, 78, 13)
HSLhsl(103, 71%, 18%)
HSVhsv(103, 83%, 31%)
CMYKcmyk(60.3%, 0%, 83.3%, 69.4%)
CIE-LABlab(28.82, -29.07, 31.37)
CIE-LCHlch(28.82, 42.77, 132.82°)
OKLaboklab(37.68% -0.0802 0.0703)
OKLCHoklch(37.68% 0.107 138.8)
XYZxyz(3.3620, 5.7689, 1.3170)
Luminance0.0577 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E0D #3C0D4E
analogous
#3F4E0D #1F4E0D #0D4E1C
triadic
#1F4E0D #0D1F4E #4E0D1F
tetradic
#1F4E0D #0D3F4E #3C0D4E #4E1C0D
square
#1F4E0D #0D3F4E #3C0D4E #4E1C0D
split-complementary
#1F4E0D #1C0D4E #4E0D3F
monochromatic
#0A1A04 #0A1A04 #1F4E0D #348216 #49B71E

Accessibility & contrast

On white

9.75
#1F4E0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F4E0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E0D
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E0D#FFFFFF#000000##FFFFFF
##1F4E0D1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514602
Deuteranopia (green-blind)
#4B4214
Tritanopia (blue-blind)
#1A4B42
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e0d;
/* rgb */ color: rgb(31, 78, 13);
/* oklch */ color: oklch(37.7% 0.107 138.8);
Tailwind
colors: {
  custom: {
    50: '#618051',
    500: '#1f4e0d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e0d;
$custom-light: #618051;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e0d",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 13
  },
  "hsl": {
    "h": 103.385,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37677,
    "c": 0.10659,
    "h": 138.8
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#1F4E0D
secondary
#702E89
accent
#3AEEBC
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F4E0D

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

Preview Lab → · Contrast checker → · Palette generator →

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