#1F5812#1F5812

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

Color values

HEX#1F5812
RGBrgb(31, 88, 18)
HSLhsl(109, 66%, 21%)
HSVhsv(109, 80%, 35%)
CMYKcmyk(64.8%, 0%, 79.5%, 65.5%)
CIE-LABlab(32.51, -32.84, 33.03)
CIE-LCHlch(32.51, 46.58, 134.84°)
OKLaboklab(40.74% -0.09 0.0745)
OKLCHoklch(40.74% 0.117 140.4)
XYZxyz(4.1638, 7.3140, 1.7645)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5812 #4B1258
analogous
#425812 #1F5812 #125828
triadic
#1F5812 #121F58 #58121F
tetradic
#1F5812 #124258 #4B1258 #582812
square
#1F5812 #124258 #4B1258 #582812
split-complementary
#1F5812 #281258 #581242
monochromatic
#091905 #0D2508 #1F5812 #318B1C #43BE27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #1f5812;
/* rgb */ color: rgb(31, 88, 18);
/* oklch */ color: oklch(40.7% 0.117 140.4);
Tailwind
colors: {
  custom: {
    50: '#638855',
    500: '#1f5812',
    950: '#000000',
  },
}
SCSS
$custom: #1f5812;
$custom-light: #638855;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5812",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 108.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40735,
    "c": 0.11685,
    "h": 140.4
  },
  "luminance": 0.07314
}

Semantic roles & 50–950 ramp

primary
#1F5812
secondary
#803591
accent
#3FE9C9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F5812

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

Preview Lab → · Contrast checker → · Palette generator →

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