#1F4A0B#1F4A0B

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

Color values

HEX#1F4A0B
RGBrgb(31, 74, 11)
HSLhsl(101, 74%, 17%)
HSVhsv(101, 85%, 29%)
CMYKcmyk(58.1%, 0%, 85.1%, 71%)
CIE-LABlab(27.33, -27.47, 30.69)
CIE-LCHlch(27.33, 41.19, 131.83°)
OKLaboklab(36.45% -0.076 0.0685)
OKLCHoklch(36.45% 0.102 138)
XYZxyz(3.0742, 5.2128, 1.1607)
Luminance0.0521 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A0B #360B4A
analogous
#3F4A0B #1F4A0B #0B4A16
triadic
#1F4A0B #0B1F4A #4A0B1F
tetradic
#1F4A0B #0B3F4A #360B4A #4A160B
square
#1F4A0B #0B3F4A #360B4A #4A160B
split-complementary
#1F4A0B #160B4A #4A0B3F
monochromatic
#0B1B04 #0B1B04 #1F4A0B #357F13 #4CB51B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4A0B#FFFFFF#000000##FFFFFF
##1F4A0B1.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)
#4D4301
Deuteranopia (green-blind)
#473F12
Tritanopia (blue-blind)
#1C473E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4a0b;
/* rgb */ color: rgb(31, 74, 11);
/* oklch */ color: oklch(36.4% 0.102 138.0);
Tailwind
colors: {
  custom: {
    50: '#607d50',
    500: '#1f4a0b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a0b;
$custom-light: #607d50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a0b",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 11
  },
  "hsl": {
    "h": 100.952,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.36445,
    "c": 0.10233,
    "h": 138
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#1F4A0B
secondary
#692B86
accent
#37F1B6
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F4A0B

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

Preview Lab → · Contrast checker → · Palette generator →

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