#337E1F#337E1F

#337E1F is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.6% C 0.148 H 139.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#337E1F
RGBrgb(51, 126, 31)
HSLhsl(107, 61%, 31%)
HSVhsv(107, 75%, 49%)
CMYKcmyk(59.5%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.61, -41.36, 42.29)
CIE-LCHlch(46.61, 59.15, 134.36°)
OKLaboklab(52.6% -0.1135 0.0956)
OKLCHoklch(52.6% 0.148 139.9)
XYZxyz(9.0730, 15.7237, 3.8529)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337E1F #6A1F7E
analogous
#627E1F #337E1F #1F7E3A
triadic
#337E1F #1F337E #7E1F33
tetradic
#337E1F #1F627E #6A1F7E #7E3A1F
square
#337E1F #1F627E #6A1F7E #7E3A1F
split-complementary
#337E1F #3A1F7E #7E1F62
monochromatic
#0B1C07 #1F4D13 #337E1F #47AF2B #63D146

Accessibility & contrast

On white

5.07
#337E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#337E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337E1F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337E1F#FFFFFF#000000##FFFFFF
##337E1F1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82720E
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#2A7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #337e1f;
/* rgb */ color: rgb(51, 126, 31);
/* oklch */ color: oklch(52.6% 0.148 139.9);
Tailwind
colors: {
  custom: {
    50: '#74a461',
    500: '#337e1f',
    950: '#000000',
  },
}
SCSS
$custom: #337e1f;
$custom-light: #74a461;
$custom-dark: #000000;
JSON
{
  "hex": "#337e1f",
  "rgb": {
    "r": 51,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 107.368,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52604,
    "c": 0.14842,
    "h": 139.9
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#337E1F
secondary
#9B48B1
accent
#44E4C2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #337E1F

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

Preview Lab → · Contrast checker → · Palette generator →

#337E1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva