#1F580D#1F580D

#1F580D is a dark, moderate green. Relative luminance 0.073; OKLCH L 40.7% C 0.120 H 139.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#1F580D
RGBrgb(31, 88, 13)
HSLhsl(106, 74%, 20%)
HSVhsv(106, 85%, 35%)
CMYKcmyk(64.8%, 0%, 85.2%, 65.5%)
CIE-LABlab(32.48, -33.22, 34.88)
CIE-LCHlch(32.48, 48.17, 133.60°)
OKLaboklab(40.7% -0.0913 0.0776)
OKLCHoklch(40.7% 0.12 139.7)
XYZxyz(4.1273, 7.2994, 1.5721)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F580D #460D58
analogous
#45580D #1F580D #0D5821
triadic
#1F580D #0D1F58 #580D1F
tetradic
#1F580D #0D4558 #460D58 #58210D
square
#1F580D #0D4558 #460D58 #58210D
split-complementary
#1F580D #210D58 #580D45
monochromatic
#091B04 #0C2305 #1F580D #328D15 #45C31D

Accessibility & contrast

On white

8.54
#1F580D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F580D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F580D
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F580D#FFFFFF#000000##FFFFFF
##1F580D1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F00
Deuteranopia (green-blind)
#544B16
Tritanopia (blue-blind)
#18554A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f580d;
/* rgb */ color: rgb(31, 88, 13);
/* oklch */ color: oklch(40.7% 0.120 139.7);
Tailwind
colors: {
  custom: {
    50: '#638853',
    500: '#1f580d',
    950: '#000000',
  },
}
SCSS
$custom: #1f580d;
$custom-light: #638853;
$custom-dark: #000000;
JSON
{
  "hex": "#1f580d",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 13
  },
  "hsl": {
    "h": 105.6,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40698,
    "c": 0.11985,
    "h": 139.7
  },
  "luminance": 0.073
}

Semantic roles & 50–950 ramp

primary
#1F580D
secondary
#7A2E93
accent
#37F1C4
background
#F6F8F4
surface
#EBF0E7
border
#C6CBC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F580D

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

Preview Lab → · Contrast checker → · Palette generator →

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