#1F5811#1F5811

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

Color values

HEX#1F5811
RGBrgb(31, 88, 17)
HSLhsl(108, 68%, 21%)
HSVhsv(108, 81%, 35%)
CMYKcmyk(64.8%, 0%, 80.7%, 65.5%)
CIE-LABlab(32.50, -32.92, 33.42)
CIE-LCHlch(32.50, 46.91, 134.57°)
OKLaboklab(40.73% -0.0903 0.0752)
OKLCHoklch(40.73% 0.118 140.2)
XYZxyz(4.1558, 7.3108, 1.7223)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5811 #4A1158
analogous
#425811 #1F5811 #115826
triadic
#1F5811 #111F58 #58111F
tetradic
#1F5811 #114258 #4A1158 #582611
square
#1F5811 #114258 #4A1158 #582611
split-complementary
#1F5811 #261158 #581142
monochromatic
#091A05 #0D2507 #1F5811 #318B1B #43BF25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F5811#FFFFFF#000000##FFFFFF
##1F58111.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)
#5B4F04
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#17554A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f5811;
/* rgb */ color: rgb(31, 88, 17);
/* oklch */ color: oklch(40.7% 0.117 140.2);
Tailwind
colors: {
  custom: {
    50: '#638855',
    500: '#1f5811',
    950: '#000000',
  },
}
SCSS
$custom: #1f5811;
$custom-light: #638855;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5811",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 108.169,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40727,
    "c": 0.1175,
    "h": 140.2
  },
  "luminance": 0.07311
}

Semantic roles & 50–950 ramp

primary
#1F5811
secondary
#7F3491
accent
#3DEAC8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F5811

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

Preview Lab → · Contrast checker → · Palette generator →

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