#1F4C0C#1F4C0C

#1F4C0C is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.1% C 0.104 H 138.4°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#1F4C0C
RGBrgb(31, 76, 12)
HSLhsl(102, 73%, 17%)
HSVhsv(102, 84%, 30%)
CMYKcmyk(59.2%, 0%, 84.2%, 70.2%)
CIE-LABlab(28.08, -28.28, 31.03)
CIE-LCHlch(28.08, 41.98, 132.34°)
OKLaboklab(37.06% -0.0781 0.0694)
OKLCHoklch(37.06% 0.104 138.4)
XYZxyz(3.2158, 5.4865, 1.2373)
Luminance0.0549 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C0C #390C4C
analogous
#3F4C0C #1F4C0C #0C4C19
triadic
#1F4C0C #0C1F4C #4C0C1F
tetradic
#1F4C0C #0C3F4C #390C4C #4C190C
square
#1F4C0C #0C3F4C #390C4C #4C190C
split-complementary
#1F4C0C #190C4C #4C0C3F
monochromatic
#0B1A04 #0B1A04 #1F4C0C #358114 #4AB61D

Accessibility & contrast

On white

10.01
#1F4C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F4C0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C0C
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C0C#FFFFFF#000000##FFFFFF
##1F4C0C1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4501
Deuteranopia (green-blind)
#494113
Tritanopia (blue-blind)
#1B4940
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f4c0c;
/* rgb */ color: rgb(31, 76, 12);
/* oklch */ color: oklch(37.1% 0.104 138.4);
Tailwind
colors: {
  custom: {
    50: '#617e50',
    500: '#1f4c0c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c0c;
$custom-light: #617e50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c0c",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 12
  },
  "hsl": {
    "h": 102.188,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.37061,
    "c": 0.10447,
    "h": 138.4
  },
  "luminance": 0.05487
}

Semantic roles & 50–950 ramp

primary
#1F4C0C
secondary
#6C2C88
accent
#38EFB9
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1F4C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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