#1F4805#1F4805

#1F4805 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 35.8% C 0.103 H 136.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#1F4805
RGBrgb(31, 72, 5)
HSLhsl(97, 87%, 15%)
HSVhsv(97, 93%, 28%)
CMYKcmyk(56.9%, 0%, 93.1%, 71.8%)
CIE-LABlab(26.55, -27.01, 32.29)
CIE-LCHlch(26.55, 42.10, 129.91°)
OKLaboklab(35.79% -0.0752 0.0707)
OKLCHoklch(35.79% 0.103 136.8)
XYZxyz(2.9097, 4.9368, 0.9431)
Luminance0.0494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4805 #2E0548
analogous
#414805 #1F4805 #05480C
triadic
#1F4805 #051F48 #48051F
tetradic
#1F4805 #054148 #2E0548 #480C05
square
#1F4805 #054148 #2E0548 #480C05
split-complementary
#1F4805 #0C0548 #480541
monochromatic
#0C1D02 #0C1D02 #1F4805 #388109 #50BA0D

Accessibility & contrast

On white

10.57
#1F4805 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F4805 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4805
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4805#FFFFFF#000000##FFFFFF
##1F48051.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4100
Deuteranopia (green-blind)
#463E0D
Tritanopia (blue-blind)
#1D453C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f4805;
/* rgb */ color: rgb(31, 72, 5);
/* oklch */ color: oklch(35.8% 0.103 136.8);
Tailwind
colors: {
  custom: {
    50: '#607b4c',
    500: '#1f4805',
    950: '#000000',
  },
}
SCSS
$custom: #1f4805;
$custom-light: #607b4c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4805",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 5
  },
  "hsl": {
    "h": 96.716,
    "s": 87.013,
    "l": 15.098
  },
  "oklch": {
    "l": 0.35791,
    "c": 0.10322,
    "h": 136.8
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#1F4805
secondary
#602188
accent
#2BFDAB
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050901
muted
#797B77

Preview Lab

Preview with #1F4805

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

Preview Lab → · Contrast checker → · Palette generator →

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