#1F5E12#1F5E12

#1F5E12 is a dark, vivid green. Relative luminance 0.083; OKLCH L 42.5% C 0.125 H 140.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#1F5E12
RGBrgb(31, 94, 18)
HSLhsl(110, 68%, 22%)
HSVhsv(110, 81%, 37%)
CMYKcmyk(67%, 0%, 80.9%, 63.1%)
CIE-LABlab(34.68, -35.23, 35.18)
CIE-LCHlch(34.68, 49.79, 135.04°)
OKLaboklab(42.53% -0.0965 0.079)
OKLCHoklch(42.53% 0.125 140.7)
XYZxyz(4.6767, 8.3399, 1.9355)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5E12 #51125E
analogous
#455E12 #1F5E12 #125E2B
triadic
#1F5E12 #121F5E #5E121F
tetradic
#1F5E12 #12455E #51125E #5E2B12
square
#1F5E12 #12455E #51125E #5E2B12
split-complementary
#1F5E12 #2B125E #5E1245
monochromatic
#081A05 #0E2B08 #1F5E12 #30911C #41C526

Accessibility & contrast

On white

7.87
#1F5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1F5E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5E12
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5E12#FFFFFF#000000##FFFFFF
##1F5E121.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#59501A
Tritanopia (blue-blind)
#155B50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f5e12;
/* rgb */ color: rgb(31, 94, 18);
/* oklch */ color: oklch(42.5% 0.125 140.7);
Tailwind
colors: {
  custom: {
    50: '#648c56',
    500: '#1f5e12',
    950: '#000000',
  },
}
SCSS
$custom: #1f5e12;
$custom-light: #648c56;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5e12",
  "rgb": {
    "r": 31,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 109.737,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42529,
    "c": 0.1247,
    "h": 140.7
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

primary
#1F5E12
secondary
#863596
accent
#3DEBCD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #1F5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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