#1F5512#1F5512

#1F5512 is a dark, moderate green. Relative luminance 0.068; OKLCH L 39.8% C 0.113 H 140.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#1F5512
RGBrgb(31, 85, 18)
HSLhsl(108, 65%, 20%)
HSVhsv(108, 79%, 33%)
CMYKcmyk(63.5%, 0%, 78.8%, 66.7%)
CIE-LABlab(31.42, -31.61, 31.93)
CIE-LCHlch(31.42, 44.93, 134.71°)
OKLaboklab(39.83% -0.0867 0.0722)
OKLCHoklch(39.83% 0.113 140.2)
XYZxyz(3.9226, 6.8316, 1.6841)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5512 #481255
analogous
#415512 #1F5512 #125526
triadic
#1F5512 #121F55 #55121F
tetradic
#1F5512 #124155 #481255 #552612
square
#1F5512 #124155 #481255 #552612
split-complementary
#1F5512 #261255 #551241
monochromatic
#091905 #0D2207 #1F5512 #31881D #44BA27

Accessibility & contrast

On white

8.87
#1F5512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1F5512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5512
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5512#FFFFFF#000000##FFFFFF
##1F55121.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D06
Deuteranopia (green-blind)
#514819
Tritanopia (blue-blind)
#185248
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f5512;
/* rgb */ color: rgb(31, 85, 18);
/* oklch */ color: oklch(39.8% 0.113 140.2);
Tailwind
colors: {
  custom: {
    50: '#628555',
    500: '#1f5512',
    950: '#000000',
  },
}
SCSS
$custom: #1f5512;
$custom-light: #628555;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5512",
  "rgb": {
    "r": 31,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 108.358,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39833,
    "c": 0.11283,
    "h": 140.2
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#1F5512
secondary
#7D358E
accent
#40E8C7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F5512

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

Preview Lab → · Contrast checker → · Palette generator →

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