#1F4908#1F4908

#1F4908 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.1% C 0.103 H 137.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#1F4908
RGBrgb(31, 73, 8)
HSLhsl(99, 80%, 16%)
HSVhsv(99, 89%, 29%)
CMYKcmyk(57.5%, 0%, 89%, 71.4%)
CIE-LABlab(26.94, -27.24, 31.45)
CIE-LCHlch(26.94, 41.61, 130.90°)
OKLaboklab(36.12% -0.0756 0.0696)
OKLCHoklch(36.12% 0.103 137.4)
XYZxyz(2.9913, 5.0737, 1.0514)
Luminance0.0507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4908 #320849
analogous
#3F4908 #1F4908 #084911
triadic
#1F4908 #081F49 #49081F
tetradic
#1F4908 #083F49 #320849 #491108
square
#1F4908 #083F49 #320849 #491108
split-complementary
#1F4908 #110849 #49083F
monochromatic
#0C1C03 #0C1C03 #1F4908 #36800E #4EB714

Accessibility & contrast

On white

10.42
#1F4908 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F4908 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4908
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4908#FFFFFF#000000##FFFFFF
##1F49081.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4200
Deuteranopia (green-blind)
#463E10
Tritanopia (blue-blind)
#1C463D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f4908;
/* rgb */ color: rgb(31, 73, 8);
/* oklch */ color: oklch(36.1% 0.103 137.4);
Tailwind
colors: {
  custom: {
    50: '#607c4e',
    500: '#1f4908',
    950: '#000000',
  },
}
SCSS
$custom: #1f4908;
$custom-light: #607c4e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4908",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 8
  },
  "hsl": {
    "h": 98.769,
    "s": 80.247,
    "l": 15.882
  },
  "oklch": {
    "l": 0.36119,
    "c": 0.10274,
    "h": 137.4
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#1F4908
secondary
#652687
accent
#31F7B1
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F4908

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

Preview Lab → · Contrast checker → · Palette generator →

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