#1F581B#1F581B

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

Color values

HEX#1F581B
RGBrgb(31, 88, 27)
HSLhsl(116, 53%, 23%)
HSVhsv(116, 69%, 35%)
CMYKcmyk(64.8%, 0%, 69.3%, 65.5%)
CIE-LABlab(32.59, -31.94, 29.05)
CIE-LCHlch(32.59, 43.17, 137.71°)
OKLaboklab(40.82% -0.087 0.0674)
OKLCHoklch(40.82% 0.11 142.2)
XYZxyz(4.2524, 7.3495, 2.2312)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F581B #541B58
analogous
#3D581B #1F581B #1B5836
triadic
#1F581B #1B1F58 #581B1F
tetradic
#1F581B #1B3D58 #541B58 #58361B
square
#1F581B #1B3D58 #541B58 #58361B
split-complementary
#1F581B #361B58 #581B3D
monochromatic
#081707 #0F290D #1F581B #2F8729 #40B638

Accessibility & contrast

On white

8.50
#1F581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F581B
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F581B#FFFFFF#000000##FFFFFF
##1F581B1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5014
Deuteranopia (green-blind)
#534B20
Tritanopia (blue-blind)
#15554B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f581b;
/* rgb */ color: rgb(31, 88, 27);
/* oklch */ color: oklch(40.8% 0.110 142.2);
Tailwind
colors: {
  custom: {
    50: '#62885a',
    500: '#1f581b',
    950: '#000000',
  },
}
SCSS
$custom: #1f581b;
$custom-light: #62885a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f581b",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 116.066,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.40824,
    "c": 0.11005,
    "h": 142.2
  },
  "luminance": 0.0735
}

Semantic roles & 50–950 ramp

primary
#1F581B
secondary
#89418E
accent
#4BDCD3
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #1F581B

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

Preview Lab → · Contrast checker → · Palette generator →

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