#1F5015#1F5015

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

Color values

HEX#1F5015
RGBrgb(31, 80, 21)
HSLhsl(110, 58%, 20%)
HSVhsv(110, 74%, 31%)
CMYKcmyk(61.2%, 0%, 73.7%, 68.6%)
CIE-LABlab(29.62, -29.21, 28.71)
CIE-LCHlch(29.62, 40.96, 135.49°)
OKLaboklab(38.35% -0.08 0.0659)
OKLCHoklch(38.35% 0.104 140.5)
XYZxyz(3.5689, 6.0825, 1.6953)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5015 #461550
analogous
#3C5015 #1F5015 #155029
triadic
#1F5015 #151F50 #50151F
tetradic
#1F5015 #153C50 #461550 #502915
square
#1F5015 #153C50 #461550 #502915
split-complementary
#1F5015 #291550 #50153C
monochromatic
#091806 #0C2008 #1F5015 #328022 #45B12E

Accessibility & contrast

On white

9.47
#1F5015 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F5015
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5015#FFFFFF#000000##FFFFFF
##1F50151.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f5015;
/* rgb */ color: rgb(31, 80, 21);
/* oklch */ color: oklch(38.4% 0.104 140.5);
Tailwind
colors: {
  custom: {
    50: '#618256',
    500: '#1f5015',
    950: '#000000',
  },
}
SCSS
$custom: #1f5015;
$custom-light: #618256;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5015",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 109.831,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38355,
    "c": 0.10365,
    "h": 140.5
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

primary
#1F5015
secondary
#7A3988
accent
#46E2C7
background
#F5F7F5
surface
#EAEEE9
border
#C6C9C5
text
#050A03
muted
#797C78

Preview Lab

Preview with #1F5015

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

Preview Lab → · Contrast checker → · Palette generator →

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