#1F4A0C#1F4A0C

#1F4A0C is a dark, moderate green. Relative luminance 0.052; OKLCH L 36.5% C 0.102 H 138.1°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#1F4A0C
RGBrgb(31, 74, 12)
HSLhsl(102, 72%, 17%)
HSVhsv(102, 84%, 29%)
CMYKcmyk(58.1%, 0%, 83.8%, 71%)
CIE-LABlab(27.34, -27.40, 30.31)
CIE-LCHlch(27.34, 40.86, 132.11°)
OKLaboklab(36.45% -0.0757 0.0679)
OKLCHoklch(36.45% 0.102 138.1)
XYZxyz(3.0801, 5.2152, 1.1921)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A0C #370C4A
analogous
#3E4A0C #1F4A0C #0C4A18
triadic
#1F4A0C #0C1F4A #4A0C1F
tetradic
#1F4A0C #0C3E4A #370C4A #4A180C
square
#1F4A0C #0C3E4A #370C4A #4A180C
split-complementary
#1F4A0C #180C4A #4A0C3E
monochromatic
#0B1A04 #0B1A04 #1F4A0C #357F15 #4BB31D

Accessibility & contrast

On white

10.28
#1F4A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F4A0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A0C
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A0C#FFFFFF#000000##FFFFFF
##1F4A0C1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4302
Deuteranopia (green-blind)
#473F13
Tritanopia (blue-blind)
#1C473E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4a0c;
/* rgb */ color: rgb(31, 74, 12);
/* oklch */ color: oklch(36.5% 0.102 138.1);
Tailwind
colors: {
  custom: {
    50: '#607d50',
    500: '#1f4a0c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a0c;
$custom-light: #607d50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a0c",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 12
  },
  "hsl": {
    "h": 101.613,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.36452,
    "c": 0.10171,
    "h": 138.1
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#1F4A0C
secondary
#6A2C86
accent
#39EFB7
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F4A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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