#1F4E0C#1F4E0C

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

Color values

HEX#1F4E0C
RGBrgb(31, 78, 12)
HSLhsl(103, 73%, 18%)
HSVhsv(103, 85%, 31%)
CMYKcmyk(60.3%, 0%, 84.6%, 69.4%)
CIE-LABlab(28.82, -29.14, 31.75)
CIE-LCHlch(28.82, 43.09, 132.55°)
OKLaboklab(37.67% -0.0804 0.0709)
OKLCHoklch(37.67% 0.107 138.6)
XYZxyz(3.3557, 5.7664, 1.2839)
Luminance0.0577 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E0C #3B0C4E
analogous
#404E0C #1F4E0C #0C4E1A
triadic
#1F4E0C #0C1F4E #4E0C1F
tetradic
#1F4E0C #0C404E #3B0C4E #4E1A0C
square
#1F4E0C #0C404E #3B0C4E #4E1A0C
split-complementary
#1F4E0C #1A0C4E #4E0C40
monochromatic
#0B1B04 #0B1B04 #1F4E0C #348314 #49B81C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4E0C#FFFFFF#000000##FFFFFF
##1F4E0C1.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)
#514600
Deuteranopia (green-blind)
#4B4213
Tritanopia (blue-blind)
#1B4B42
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e0c;
/* rgb */ color: rgb(31, 78, 12);
/* oklch */ color: oklch(37.7% 0.107 138.6);
Tailwind
colors: {
  custom: {
    50: '#618051',
    500: '#1f4e0c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e0c;
$custom-light: #618051;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e0c",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 12
  },
  "hsl": {
    "h": 102.727,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37669,
    "c": 0.10721,
    "h": 138.6
  },
  "luminance": 0.05767
}

Semantic roles & 50–950 ramp

primary
#1F4E0C
secondary
#6F2C8A
accent
#38F0BB
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F4E0C

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

Preview Lab → · Contrast checker → · Palette generator →

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