#1F5012#1F5012

#1F5012 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.106 H 139.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#1F5012
RGBrgb(31, 80, 18)
HSLhsl(107, 63%, 19%)
HSVhsv(107, 78%, 31%)
CMYKcmyk(61.2%, 0%, 77.5%, 68.6%)
CIE-LABlab(29.59, -29.50, 30.06)
CIE-LCHlch(29.59, 42.12, 134.46°)
OKLaboklab(38.32% -0.081 0.0683)
OKLCHoklch(38.32% 0.106 139.9)
XYZxyz(3.5428, 6.0720, 1.5575)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5012 #431250
analogous
#3E5012 #1F5012 #125024
triadic
#1F5012 #121F50 #50121F
tetradic
#1F5012 #123E50 #431250 #502412
square
#1F5012 #123E50 #431250 #502412
split-complementary
#1F5012 #241250 #50123E
monochromatic
#0A1906 #0C1E07 #1F5012 #32821D #46B428

Accessibility & contrast

On white

9.48
#1F5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5012
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5012#FFFFFF#000000##FFFFFF
##1F50121.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4C4418
Tritanopia (blue-blind)
#194D44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f5012;
/* rgb */ color: rgb(31, 80, 18);
/* oklch */ color: oklch(38.3% 0.106 139.9);
Tailwind
colors: {
  custom: {
    50: '#618254',
    500: '#1f5012',
    950: '#000000',
  },
}
SCSS
$custom: #1f5012;
$custom-light: #618254;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5012",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 107.419,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38325,
    "c": 0.10596,
    "h": 139.9
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#1F5012
secondary
#773589
accent
#41E6C4
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5012

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

Preview Lab → · Contrast checker → · Palette generator →

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