#1F5612#1F5612

#1F5612 is a dark, moderate green. Relative luminance 0.070; OKLCH L 40.1% C 0.114 H 140.3°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#1F5612
RGBrgb(31, 86, 18)
HSLhsl(109, 65%, 20%)
HSVhsv(109, 79%, 34%)
CMYKcmyk(64%, 0%, 79.1%, 66.3%)
CIE-LABlab(31.78, -32.02, 32.30)
CIE-LCHlch(31.78, 45.48, 134.76°)
OKLaboklab(40.13% -0.0878 0.073)
OKLCHoklch(40.13% 0.114 140.3)
XYZxyz(4.0019, 6.9902, 1.7105)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5612 #491256
analogous
#415612 #1F5612 #125627
triadic
#1F5612 #121F56 #56121F
tetradic
#1F5612 #124156 #491256 #562712
square
#1F5612 #124156 #491256 #562712
split-complementary
#1F5612 #271256 #561241
monochromatic
#091905 #0D2307 #1F5612 #31891D #43BB27

Accessibility & contrast

On white

8.76
#1F5612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1F5612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5612
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5612#FFFFFF#000000##FFFFFF
##1F56121.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#524919
Tritanopia (blue-blind)
#185349
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f5612;
/* rgb */ color: rgb(31, 86, 18);
/* oklch */ color: oklch(40.1% 0.114 140.3);
Tailwind
colors: {
  custom: {
    50: '#628655',
    500: '#1f5612',
    950: '#000000',
  },
}
SCSS
$custom: #1f5612;
$custom-light: #628655;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5612",
  "rgb": {
    "r": 31,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 108.529,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40134,
    "c": 0.11418,
    "h": 140.3
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#1F5612
secondary
#7E358F
accent
#3FE8C8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F5612

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

Preview Lab → · Contrast checker → · Palette generator →

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