#337B1F#337B1F

#337B1F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.145 H 139.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#337B1F
RGBrgb(51, 123, 31)
HSLhsl(107, 60%, 30%)
HSVhsv(107, 75%, 48%)
CMYKcmyk(58.5%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.59, -40.18, 41.25)
CIE-LCHlch(45.59, 57.59, 134.25°)
OKLaboklab(51.76% -0.1104 0.0934)
OKLCHoklch(51.76% 0.145 139.8)
XYZxyz(8.6951, 14.9679, 3.7269)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337B1F #671F7B
analogous
#617B1F #337B1F #1F7B39
triadic
#337B1F #1F337B #7B1F33
tetradic
#337B1F #1F617B #671F7B #7B391F
square
#337B1F #1F617B #671F7B #7B391F
split-complementary
#337B1F #391F7B #7B1F61
monochromatic
#0A1906 #1F4A13 #337B1F #47AC2B #63D044

Accessibility & contrast

On white

5.26
#337B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#337B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337B1F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337B1F#FFFFFF#000000##FFFFFF
##337B1F1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#756A28
Tritanopia (blue-blind)
#2B7769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #337b1f;
/* rgb */ color: rgb(51, 123, 31);
/* oklch */ color: oklch(51.8% 0.145 139.8);
Tailwind
colors: {
  custom: {
    50: '#73a261',
    500: '#337b1f',
    950: '#000000',
  },
}
SCSS
$custom: #337b1f;
$custom-light: #73a261;
$custom-dark: #000000;
JSON
{
  "hex": "#337b1f",
  "rgb": {
    "r": 51,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 106.957,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51763,
    "c": 0.14459,
    "h": 139.8
  },
  "luminance": 0.14969
}

Semantic roles & 50–950 ramp

primary
#337B1F
secondary
#9848AE
accent
#45E3C1
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #337B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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