#1F581E#1F581E

#1F581E is a dark, moderate green. Relative luminance 0.074; OKLCH L 40.9% C 0.107 H 143.0°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#1F581E
RGBrgb(31, 88, 30)
HSLhsl(119, 49%, 23%)
HSVhsv(119, 66%, 35%)
CMYKcmyk(64.8%, 0%, 65.9%, 65.5%)
CIE-LABlab(32.62, -31.57, 27.57)
CIE-LCHlch(32.62, 41.91, 138.87°)
OKLaboklab(40.86% -0.0858 0.0646)
OKLCHoklch(40.86% 0.107 143)
XYZxyz(4.2889, 7.3641, 2.4234)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F581E #571E58
analogous
#3C581E #1F581E #1E583A
triadic
#1F581E #1E1F58 #581E1F
tetradic
#1F581E #1E3C58 #571E58 #583A1E
square
#1F581E #1E3C58 #571E58 #583A1E
split-complementary
#1F581E #3A1E58 #581E3C
monochromatic
#081708 #0F2A0E #1F581E #2F862E #3FB33D

Accessibility & contrast

On white

8.49
#1F581E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F581E
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F581E#FFFFFF#000000##FFFFFF
##1F581E1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5018
Deuteranopia (green-blind)
#534B23
Tritanopia (blue-blind)
#15554C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f581e;
/* rgb */ color: rgb(31, 88, 30);
/* oklch */ color: oklch(40.9% 0.107 143.0);
Tailwind
colors: {
  custom: {
    50: '#62885c',
    500: '#1f581e',
    950: '#000000',
  },
}
SCSS
$custom: #1f581e;
$custom-light: #62885c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f581e",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 30
  },
  "hsl": {
    "h": 118.966,
    "s": 49.153,
    "l": 23.137
  },
  "oklch": {
    "l": 0.40861,
    "c": 0.10742,
    "h": 143
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

primary
#1F581E
secondary
#8C458D
accent
#4FD9D6
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#050B04
muted
#7A7C79

Preview Lab

Preview with #1F581E

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

Preview Lab → · Contrast checker → · Palette generator →

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