#1F5F12#1F5F12

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

Color values

HEX#1F5F12
RGBrgb(31, 95, 18)
HSLhsl(110, 68%, 22%)
HSVhsv(110, 81%, 37%)
CMYKcmyk(67.4%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.04, -35.62, 35.54)
CIE-LCHlch(35.04, 50.32, 135.07°)
OKLaboklab(42.83% -0.0975 0.0798)
OKLCHoklch(42.83% 0.126 140.7)
XYZxyz(4.7662, 8.5189, 1.9653)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F12 #52125F
analogous
#465F12 #1F5F12 #125F2C
triadic
#1F5F12 #121F5F #5F121F
tetradic
#1F5F12 #12465F #52125F #5F2C12
square
#1F5F12 #12465F #52125F #5F2C12
split-complementary
#1F5F12 #2C125F #5F1246
monochromatic
#081A05 #0E2C08 #1F5F12 #30921C #41C625

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F5F12#FFFFFF#000000##FFFFFF
##1F5F121.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)
#625603
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#155C50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f5f12;
/* rgb */ color: rgb(31, 95, 18);
/* oklch */ color: oklch(42.8% 0.126 140.7);
Tailwind
colors: {
  custom: {
    50: '#648d56',
    500: '#1f5f12',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f12;
$custom-light: #648d56;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f12",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 109.87,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42827,
    "c": 0.12598,
    "h": 140.7
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#1F5F12
secondary
#873697
accent
#3DEBCE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #1F5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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