#1F580F#1F580F

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

Color values

HEX#1F580F
RGBrgb(31, 88, 15)
HSLhsl(107, 71%, 20%)
HSVhsv(107, 83%, 35%)
CMYKcmyk(64.8%, 0%, 83%, 65.5%)
CIE-LABlab(32.49, -33.08, 34.18)
CIE-LCHlch(32.49, 47.56, 134.06°)
OKLaboklab(40.71% -0.0908 0.0764)
OKLCHoklch(40.71% 0.119 139.9)
XYZxyz(4.1408, 7.3049, 1.6436)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F580F #480F58
analogous
#44580F #1F580F #0F5823
triadic
#1F580F #0F1F58 #580F1F
tetradic
#1F580F #0F4458 #480F58 #58230F
square
#1F580F #0F4458 #480F58 #58230F
split-complementary
#1F580F #230F58 #580F44
monochromatic
#091A04 #0D2406 #1F580F #318C18 #44C121

Accessibility & contrast

On white

8.53
#1F580F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F580F
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F580F#FFFFFF#000000##FFFFFF
##1F580F1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f580f;
/* rgb */ color: rgb(31, 88, 15);
/* oklch */ color: oklch(40.7% 0.119 139.9);
Tailwind
colors: {
  custom: {
    50: '#638854',
    500: '#1f580f',
    950: '#000000',
  },
}
SCSS
$custom: #1f580f;
$custom-light: #638854;
$custom-dark: #000000;
JSON
{
  "hex": "#1f580f",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 15
  },
  "hsl": {
    "h": 106.849,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40711,
    "c": 0.11872,
    "h": 139.9
  },
  "luminance": 0.07305
}

Semantic roles & 50–950 ramp

primary
#1F580F
secondary
#7D3192
accent
#3AEEC6
background
#F6F8F5
surface
#EBF0E8
border
#C6CBC4
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F580F

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

Preview Lab → · Contrast checker → · Palette generator →

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