#1F3F04#1F3F04

#1F3F04 is a dark, moderate yellow-green. Relative luminance 0.039; OKLCH L 33.0% C 0.092 H 134.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#1F3F04
RGBrgb(31, 63, 4)
HSLhsl(93, 88%, 13%)
HSVhsv(93, 94%, 25%)
CMYKcmyk(50.8%, 0%, 93.7%, 75.3%)
CIE-LABlab(23.19, -22.95, 29.47)
CIE-LCHlch(23.19, 37.35, 127.90°)
OKLaboklab(33.02% -0.0644 0.0651)
OKLCHoklch(33.02% 0.092 134.7)
XYZxyz(2.3644, 3.8549, 0.7343)
Luminance0.0386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F04 #24043F
analogous
#3C3F04 #1F3F04 #043F06
triadic
#1F3F04 #041F3F #3F041F
tetradic
#1F3F04 #043C3F #24043F #3F0604
square
#1F3F04 #043C3F #24043F #3F0604
split-complementary
#1F3F04 #06043F #3F043C
monochromatic
#0E1D02 #0E1D02 #1F3F04 #3B7908 #58B20B

Accessibility & contrast

On white

11.86
#1F3F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F3F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F04
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F04#FFFFFF#000000##FFFFFF
##1F3F041.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423900
Deuteranopia (green-blind)
#3E360A
Tritanopia (blue-blind)
#1E3C34
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f3f04;
/* rgb */ color: rgb(31, 63, 4);
/* oklch */ color: oklch(33.0% 0.092 134.7);
Tailwind
colors: {
  custom: {
    50: '#5f744a',
    500: '#1f3f04',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f04;
$custom-light: #5f744a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f04",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 4
  },
  "hsl": {
    "h": 92.542,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.33018,
    "c": 0.09159,
    "h": 134.7
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#1F3F04
secondary
#541E80
accent
#2AFE9D
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F3F04

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

Preview Lab → · Contrast checker → · Palette generator →

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