#1F4E07#1F4E07

#1F4E07 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.6% C 0.110 H 137.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#1F4E07
RGBrgb(31, 78, 7)
HSLhsl(100, 84%, 17%)
HSVhsv(100, 91%, 31%)
CMYKcmyk(60.3%, 0%, 91%, 69.4%)
CIE-LABlab(28.79, -29.47, 33.51)
CIE-LCHlch(28.79, 44.63, 131.33°)
OKLaboklab(37.64% -0.0816 0.0737)
OKLCHoklch(37.64% 0.11 137.9)
XYZxyz(3.3277, 5.7552, 1.1365)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E07 #36074E
analogous
#434E07 #1F4E07 #074E13
triadic
#1F4E07 #071F4E #4E071F
tetradic
#1F4E07 #07434E #36074E #4E1307
square
#1F4E07 #07434E #36074E #4E1307
split-complementary
#1F4E07 #13074E #4E0743
monochromatic
#0B1C03 #0B1C03 #1F4E07 #35860C #4CBE11

Accessibility & contrast

On white

9.76
#1F4E07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F4E07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E07
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E07#FFFFFF#000000##FFFFFF
##1F4E071.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514600
Deuteranopia (green-blind)
#4B4210
Tritanopia (blue-blind)
#1B4B41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e07;
/* rgb */ color: rgb(31, 78, 7);
/* oklch */ color: oklch(37.6% 0.110 137.9);
Tailwind
colors: {
  custom: {
    50: '#61804e',
    500: '#1f4e07',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e07;
$custom-light: #61804e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e07",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 7
  },
  "hsl": {
    "h": 99.718,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.10999,
    "h": 137.9
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#1F4E07
secondary
#69258C
accent
#2EFAB5
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F4E07

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

Preview Lab → · Contrast checker → · Palette generator →

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