#336F1F#336F1F

#336F1F is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.4% C 0.129 H 139.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#336F1F
RGBrgb(51, 111, 31)
HSLhsl(105, 56%, 28%)
HSVhsv(105, 72%, 44%)
CMYKcmyk(54.1%, 0%, 72.1%, 56.5%)
CIE-LABlab(41.49, -35.28, 37.01)
CIE-LCHlch(41.49, 51.13, 133.64°)
OKLaboklab(48.38% -0.0971 0.0845)
OKLCHoklch(48.38% 0.129 139)
XYZxyz(7.2967, 12.1711, 3.2608)
Luminance0.1217 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336F1F #5B1F6F
analogous
#5B6F1F #336F1F #1F6F33
triadic
#336F1F #1F336F #6F1F33
tetradic
#336F1F #1F5B6F #5B1F6F #6F331F
square
#336F1F #1F5B6F #5B1F6F #6F331F
split-complementary
#336F1F #331F6F #6F1F5B
monochromatic
#0B1807 #1D3F12 #336F1F #499F2C #62C93F

Accessibility & contrast

On white

6.11
#336F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#336F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336F1F
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336F1F#FFFFFF#000000##FFFFFF
##336F1F1.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726513
Deuteranopia (green-blind)
#6B6026
Tritanopia (blue-blind)
#2E6B5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #336f1f;
/* rgb */ color: rgb(51, 111, 31);
/* oklch */ color: oklch(48.4% 0.129 139.0);
Tailwind
colors: {
  custom: {
    50: '#71995f',
    500: '#336f1f',
    950: '#000000',
  },
}
SCSS
$custom: #336f1f;
$custom-light: #71995f;
$custom-dark: #000000;
JSON
{
  "hex": "#336f1f",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 31
  },
  "hsl": {
    "h": 105,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48381,
    "c": 0.12875,
    "h": 139
  },
  "luminance": 0.12172
}

Semantic roles & 50–950 ramp

primary
#336F1F
secondary
#8C47A3
accent
#48E0BA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #336F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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