#1F5013#1F5013

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

Color values

HEX#1F5013
RGBrgb(31, 80, 19)
HSLhsl(108, 62%, 19%)
HSVhsv(108, 76%, 31%)
CMYKcmyk(61.2%, 0%, 76.3%, 68.6%)
CIE-LABlab(29.60, -29.41, 29.62)
CIE-LCHlch(29.60, 41.74, 134.79°)
OKLaboklab(38.34% -0.0807 0.0675)
OKLCHoklch(38.34% 0.105 140.1)
XYZxyz(3.5511, 6.0753, 1.6015)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5013 #441350
analogous
#3E5013 #1F5013 #135026
triadic
#1F5013 #131F50 #50131F
tetradic
#1F5013 #133E50 #441350 #502613
square
#1F5013 #133E50 #441350 #502613
split-complementary
#1F5013 #261350 #50133E
monochromatic
#0A1906 #0C1F07 #1F5013 #32811F #45B32A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F5013#FFFFFF#000000##FFFFFF
##1F50131.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)
#52480A
Deuteranopia (green-blind)
#4C4419
Tritanopia (blue-blind)
#194D44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f5013;
/* rgb */ color: rgb(31, 80, 19);
/* oklch */ color: oklch(38.3% 0.105 140.1);
Tailwind
colors: {
  custom: {
    50: '#618255',
    500: '#1f5013',
    950: '#000000',
  },
}
SCSS
$custom: #1f5013;
$custom-light: #618255;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5013",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 19
  },
  "hsl": {
    "h": 108.197,
    "s": 61.616,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.10521,
    "h": 140.1
  },
  "luminance": 0.06076
}

Semantic roles & 50–950 ramp

primary
#1F5013
secondary
#783689
accent
#43E5C5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5013

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

Preview Lab → · Contrast checker → · Palette generator →

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