#1F5014#1F5014

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

Color values

HEX#1F5014
RGBrgb(31, 80, 20)
HSLhsl(109, 60%, 20%)
HSVhsv(109, 75%, 31%)
CMYKcmyk(61.2%, 0%, 75%, 68.6%)
CIE-LABlab(29.61, -29.31, 29.17)
CIE-LCHlch(29.61, 41.35, 135.13°)
OKLaboklab(38.35% -0.0803 0.0667)
OKLCHoklch(38.35% 0.104 140.3)
XYZxyz(3.5598, 6.0788, 1.6474)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5014 #451450
analogous
#3D5014 #1F5014 #145027
triadic
#1F5014 #141F50 #50141F
tetradic
#1F5014 #143D50 #451450 #502714
square
#1F5014 #143D50 #451450 #502714
split-complementary
#1F5014 #271450 #50143D
monochromatic
#091806 #0C1F08 #1F5014 #328120 #45B22C

Accessibility & contrast

On white

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

On black

2.22
#1F5014 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F5014#FFFFFF#000000##FFFFFF
##1F50141.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52480B
Deuteranopia (green-blind)
#4C441A
Tritanopia (blue-blind)
#194D44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f5014;
/* rgb */ color: rgb(31, 80, 20);
/* oklch */ color: oklch(38.3% 0.104 140.3);
Tailwind
colors: {
  custom: {
    50: '#618255',
    500: '#1f5014',
    950: '#000000',
  },
}
SCSS
$custom: #1f5014;
$custom-light: #618255;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5014",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 20
  },
  "hsl": {
    "h": 109,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38345,
    "c": 0.10444,
    "h": 140.3
  },
  "luminance": 0.06079
}

Semantic roles & 50–950 ramp

primary
#1F5014
secondary
#793888
accent
#45E3C6
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5014

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

Preview Lab → · Contrast checker → · Palette generator →

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