#336A1F#336A1F

#336A1F is a mid, vivid green. Relative luminance 0.111; OKLCH L 47.0% C 0.122 H 138.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#336A1F
RGBrgb(51, 106, 31)
HSLhsl(104, 55%, 27%)
HSVhsv(104, 71%, 42%)
CMYKcmyk(51.9%, 0%, 70.8%, 58.4%)
CIE-LABlab(39.77, -33.14, 35.18)
CIE-LCHlch(39.77, 48.34, 133.29°)
OKLaboklab(46.97% -0.0913 0.0807)
OKLCHoklch(46.97% 0.122 138.5)
XYZxyz(6.7664, 11.1103, 3.0840)
Luminance0.1111 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A1F #561F6A
analogous
#596A1F #336A1F #1F6A31
triadic
#336A1F #1F336A #6A1F33
tetradic
#336A1F #1F596A #561F6A #6A311F
square
#336A1F #1F596A #561F6A #6A311F
split-complementary
#336A1F #311F6A #6A1F59
monochromatic
#0B1807 #1C3B11 #336A1F #4A992D #62C63D

Accessibility & contrast

On white

6.52
#336A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#336A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A1F
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A1F#FFFFFF#000000##FFFFFF
##336A1F1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6115
Deuteranopia (green-blind)
#665C26
Tritanopia (blue-blind)
#2F665B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #336a1f;
/* rgb */ color: rgb(51, 106, 31);
/* oklch */ color: oklch(47.0% 0.122 138.5);
Tailwind
colors: {
  custom: {
    50: '#70955f',
    500: '#336a1f',
    950: '#000000',
  },
}
SCSS
$custom: #336a1f;
$custom-light: #70955f;
$custom-dark: #000000;
JSON
{
  "hex": "#336a1f",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 31
  },
  "hsl": {
    "h": 104,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.46966,
    "c": 0.12187,
    "h": 138.5
  },
  "luminance": 0.11111
}

Semantic roles & 50–950 ramp

primary
#336A1F
secondary
#87479E
accent
#4ADEB7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D05
muted
#7B7E79

Preview Lab

Preview with #336A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#336A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva