#1F4C0B#1F4C0B

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

Color values

HEX#1F4C0B
RGBrgb(31, 76, 11)
HSLhsl(102, 75%, 17%)
HSVhsv(102, 86%, 30%)
CMYKcmyk(59.2%, 0%, 85.5%, 70.2%)
CIE-LABlab(28.07, -28.35, 31.41)
CIE-LCHlch(28.07, 42.31, 132.07°)
OKLaboklab(37.05% -0.0784 0.07)
OKLCHoklch(37.05% 0.105 138.2)
XYZxyz(3.2098, 5.4841, 1.2059)
Luminance0.0548 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C0B #380B4C
analogous
#404C0B #1F4C0B #0B4C17
triadic
#1F4C0B #0B1F4C #4C0B1F
tetradic
#1F4C0B #0B404C #380B4C #4C170B
square
#1F4C0B #0B404C #380B4C #4C170B
split-complementary
#1F4C0B #170B4C #4C0B40
monochromatic
#0B1B04 #0B1B04 #1F4C0B #358113 #4BB71A

Accessibility & contrast

On white

10.02
#1F4C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4C0B
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C0B#FFFFFF#000000##FFFFFF
##1F4C0B1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4c0b;
/* rgb */ color: rgb(31, 76, 11);
/* oklch */ color: oklch(37.1% 0.105 138.2);
Tailwind
colors: {
  custom: {
    50: '#617e50',
    500: '#1f4c0b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c0b;
$custom-light: #617e50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c0b",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 11
  },
  "hsl": {
    "h": 101.538,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.37054,
    "c": 0.10508,
    "h": 138.2
  },
  "luminance": 0.05484
}

Semantic roles & 50–950 ramp

primary
#1F4C0B
secondary
#6B2B88
accent
#36F1B8
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1F4C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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