#1F5F0F#1F5F0F

#1F5F0F is a dark, vivid green. Relative luminance 0.085; OKLCH L 42.8% C 0.128 H 140.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#1F5F0F
RGBrgb(31, 95, 15)
HSLhsl(108, 73%, 22%)
HSVhsv(108, 84%, 37%)
CMYKcmyk(67.4%, 0%, 84.2%, 62.7%)
CIE-LABlab(35.02, -35.84, 36.61)
CIE-LCHlch(35.02, 51.23, 134.40°)
OKLaboklab(42.81% -0.0983 0.0815)
OKLCHoklch(42.81% 0.128 140.3)
XYZxyz(4.7433, 8.5098, 1.8444)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F0F #4F0F5F
analogous
#475F0F #1F5F0F #0F5F27
triadic
#1F5F0F #0F1F5F #5F0F1F
tetradic
#1F5F0F #0F475F #4F0F5F #5F270F
square
#1F5F0F #0F475F #4F0F5F #5F270F
split-complementary
#1F5F0F #270F5F #5F0F47
monochromatic
#091A04 #0E2A07 #1F5F0F #309417 #41C920

Accessibility & contrast

On white

7.77
#1F5F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#1F5F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5F0F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F0F#FFFFFF#000000##FFFFFF
##1F5F0F1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#155C50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f5f0f;
/* rgb */ color: rgb(31, 95, 15);
/* oklch */ color: oklch(42.8% 0.128 140.3);
Tailwind
colors: {
  custom: {
    50: '#658d55',
    500: '#1f5f0f',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f0f;
$custom-light: #658d55;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f0f",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 108,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.12768,
    "h": 140.3
  },
  "luminance": 0.0851
}

Semantic roles & 50–950 ramp

primary
#1F5F0F
secondary
#843298
accent
#38EFCB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #1F5F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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