#1F4C0F#1F4C0F

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

Color values

HEX#1F4C0F
RGBrgb(31, 76, 15)
HSLhsl(104, 67%, 18%)
HSVhsv(104, 80%, 30%)
CMYKcmyk(59.2%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.10, -28.04, 29.84)
CIE-LCHlch(28.10, 40.94, 133.22°)
OKLaboklab(37.09% -0.0772 0.0674)
OKLCHoklch(37.09% 0.103 138.9)
XYZxyz(3.2356, 5.4944, 1.3419)
Luminance0.0549 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C0F #3C0F4C
analogous
#3D4C0F #1F4C0F #0F4C1D
triadic
#1F4C0F #0F1F4C #4C0F1F
tetradic
#1F4C0F #0F3D4C #3C0F4C #4C1D0F
square
#1F4C0F #0F3D4C #3C0F4C #4C1D0F
split-complementary
#1F4C0F #1D0F4C #4C0F3D
monochromatic
#0A1A05 #0A1A05 #1F4C0F #347F19 #49B223

Accessibility & contrast

On white

10.00
#1F4C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4C0F
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C0F#FFFFFF#000000##FFFFFF
##1F4C0F1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4c0f;
/* rgb */ color: rgb(31, 76, 15);
/* oklch */ color: oklch(37.1% 0.103 138.9);
Tailwind
colors: {
  custom: {
    50: '#607e52',
    500: '#1f4c0f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c0f;
$custom-light: #607e52;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c0f",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 104.262,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37086,
    "c": 0.10251,
    "h": 138.9
  },
  "luminance": 0.05495
}

Semantic roles & 50–950 ramp

primary
#1F4C0F
secondary
#703186
accent
#3EEABD
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1F4C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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