#338F1F#338F1F

#338F1F is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.169 H 140.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F1F
RGBrgb(51, 143, 31)
HSLhsl(109, 64%, 34%)
HSVhsv(109, 78%, 56%)
CMYKcmyk(64.3%, 0%, 78.3%, 43.9%)
CIE-LABlab(52.34, -47.73, 47.97)
CIE-LCHlch(52.34, 67.67, 134.86°)
OKLaboklab(57.34% -0.1307 0.1074)
OKLCHoklch(57.34% 0.169 140.6)
XYZxyz(11.4345, 20.4466, 4.6401)
Luminance0.2045 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F1F #7B1F8F
analogous
#6B8F1F #338F1F #1F8F43
triadic
#338F1F #1F338F #8F1F33
tetradic
#338F1F #1F6B8F #7B1F8F #8F431F
square
#338F1F #1F6B8F #7B1F8F #8F431F
split-complementary
#338F1F #431F8F #8F1F6B
monochromatic
#0F2A09 #215D14 #338F1F #45C12A #68D94F

Accessibility & contrast

On white

4.13
#338F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F1F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F1F#FFFFFF#000000##000000
##338F1F1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#248A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f1f;
/* rgb */ color: rgb(51, 143, 31);
/* oklch */ color: oklch(57.3% 0.169 140.6);
Tailwind
colors: {
  custom: {
    50: '#77b164',
    500: '#338f1f',
    950: '#000000',
  },
}
SCSS
$custom: #338f1f;
$custom-light: #77b164;
$custom-dark: #000000;
JSON
{
  "hex": "#338f1f",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 109.286,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5734,
    "c": 0.16921,
    "h": 140.6
  },
  "luminance": 0.20448
}

Semantic roles & 50–950 ramp

primary
#338F1F
secondary
#A84EBC
accent
#40E7CA
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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