#1F581A#1F581A

#1F581A is a dark, moderate green. Relative luminance 0.073; OKLCH L 40.8% C 0.111 H 142.0°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#1F581A
RGBrgb(31, 88, 26)
HSLhsl(115, 54%, 22%)
HSVhsv(115, 70%, 35%)
CMYKcmyk(64.8%, 0%, 70.5%, 65.5%)
CIE-LABlab(32.58, -32.05, 29.52)
CIE-LCHlch(32.58, 43.58, 137.35°)
OKLaboklab(40.81% -0.0874 0.0683)
OKLCHoklch(40.81% 0.111 142)
XYZxyz(4.2410, 7.3449, 2.1713)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F581A #531A58
analogous
#3E581A #1F581A #1A5834
triadic
#1F581A #1A1F58 #581A1F
tetradic
#1F581A #1A3E58 #531A58 #58341A
square
#1F581A #1A3E58 #531A58 #58341A
split-complementary
#1F581A #341A58 #581A3E
monochromatic
#081807 #0E290C #1F581A #308728 #40B636

Accessibility & contrast

On white

8.51
#1F581A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F581A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F581A
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F581A#FFFFFF#000000##FFFFFF
##1F581A1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5012
Deuteranopia (green-blind)
#534B1F
Tritanopia (blue-blind)
#16554B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f581a;
/* rgb */ color: rgb(31, 88, 26);
/* oklch */ color: oklch(40.8% 0.111 142.0);
Tailwind
colors: {
  custom: {
    50: '#62885a',
    500: '#1f581a',
    950: '#000000',
  },
}
SCSS
$custom: #1f581a;
$custom-light: #62885a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f581a",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 26
  },
  "hsl": {
    "h": 115.161,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.40813,
    "c": 0.11089,
    "h": 142
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#1F581A
secondary
#88408E
accent
#4ADED2
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #1F581A

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

Preview Lab → · Contrast checker → · Palette generator →

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