#1F3F07#1F3F07

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

Color values

HEX#1F3F07
RGBrgb(31, 63, 7)
HSLhsl(94, 80%, 14%)
HSVhsv(94, 89%, 25%)
CMYKcmyk(50.8%, 0%, 88.9%, 75.3%)
CIE-LABlab(23.21, -22.70, 28.27)
CIE-LCHlch(23.21, 36.26, 128.76°)
OKLaboklab(33.04% -0.0635 0.0629)
OKLCHoklch(33.04% 0.089 135.3)
XYZxyz(2.3809, 3.8615, 0.8209)
Luminance0.0386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F07 #27073F
analogous
#3B3F07 #1F3F07 #073F0B
triadic
#1F3F07 #071F3F #3F071F
tetradic
#1F3F07 #073B3F #27073F #3F0B07
square
#1F3F07 #073B3F #27073F #3F0B07
split-complementary
#1F3F07 #0B073F #3F073B
monochromatic
#0E1C03 #0E1C03 #1F3F07 #3A760D #55AD13

Accessibility & contrast

On white

11.85
#1F3F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3F07
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F07#FFFFFF#000000##FFFFFF
##1F3F071.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3f07;
/* rgb */ color: rgb(31, 63, 7);
/* oklch */ color: oklch(33.0% 0.089 135.3);
Tailwind
colors: {
  custom: {
    50: '#5f744c',
    500: '#1f3f07',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f07;
$custom-light: #5f744c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f07",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 7
  },
  "hsl": {
    "h": 94.286,
    "s": 80,
    "l": 13.725
  },
  "oklch": {
    "l": 0.33044,
    "c": 0.0894,
    "h": 135.3
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#1F3F07
secondary
#57247E
accent
#31F6A2
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F3F07

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

Preview Lab → · Contrast checker → · Palette generator →

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