#337F1F#337F1F

#337F1F is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.150 H 140.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#337F1F
RGBrgb(51, 127, 31)
HSLhsl(108, 61%, 31%)
HSVhsv(108, 76%, 50%)
CMYKcmyk(59.8%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.95, -41.75, 42.63)
CIE-LCHlch(46.95, 59.67, 134.40°)
OKLaboklab(52.88% -0.1146 0.0963)
OKLCHoklch(52.88% 0.15 140)
XYZxyz(9.2015, 15.9807, 3.8957)
Luminance0.1598 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337F1F #6B1F7F
analogous
#637F1F #337F1F #1F7F3B
triadic
#337F1F #1F337F #7F1F33
tetradic
#337F1F #1F637F #6B1F7F #7F3B1F
square
#337F1F #1F637F #6B1F7F #7F3B1F
split-complementary
#337F1F #3B1F7F #7F1F63
monochromatic
#0B1D07 #1F4E13 #337F1F #47B02B #64D246

Accessibility & contrast

On white

5.00
#337F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#337F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337F1F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337F1F#FFFFFF#000000##FFFFFF
##337F1F1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#2A7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #337f1f;
/* rgb */ color: rgb(51, 127, 31);
/* oklch */ color: oklch(52.9% 0.150 140.0);
Tailwind
colors: {
  custom: {
    50: '#74a561',
    500: '#337f1f',
    950: '#000000',
  },
}
SCSS
$custom: #337f1f;
$custom-light: #74a561;
$custom-dark: #000000;
JSON
{
  "hex": "#337f1f",
  "rgb": {
    "r": 51,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 107.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52884,
    "c": 0.14968,
    "h": 140
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

primary
#337F1F
secondary
#9C48B2
accent
#44E4C3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #337F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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