#335C1F#335C1F

#335C1F is a dark, moderate green. Relative luminance 0.085; OKLCH L 43.0% C 0.102 H 136.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#335C1F
RGBrgb(51, 92, 31)
HSLhsl(100, 50%, 24%)
HSVhsv(100, 66%, 36%)
CMYKcmyk(44.6%, 0%, 66.3%, 63.9%)
CIE-LABlab(34.92, -26.78, 29.89)
CIE-LCHlch(34.92, 40.13, 131.86°)
OKLaboklab(42.99% -0.074 0.0695)
OKLCHoklch(42.99% 0.102 136.8)
XYZxyz(5.4396, 8.4567, 2.6417)
Luminance0.0846 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C1F #481F5C
analogous
#525C1F #335C1F #1F5C2A
triadic
#335C1F #1F335C #5C1F33
tetradic
#335C1F #1F525C #481F5C #5C2A1F
square
#335C1F #1F525C #481F5C #5C2A1F
split-complementary
#335C1F #2A1F5C #5C1F52
monochromatic
#0D1708 #1A2E10 #335C1F #4C8A2E #66B83E

Accessibility & contrast

On white

7.80
#335C1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#335C1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C1F
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C1F#FFFFFF#000000##FFFFFF
##335C1F1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5418
Deuteranopia (green-blind)
#5A5124
Tritanopia (blue-blind)
#31594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c1f;
/* rgb */ color: rgb(51, 92, 31);
/* oklch */ color: oklch(43.0% 0.102 136.8);
Tailwind
colors: {
  custom: {
    50: '#6e8a5d',
    500: '#335c1f',
    950: '#000000',
  },
}
SCSS
$custom: #335c1f;
$custom-light: #6e8a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#335c1f",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 31
  },
  "hsl": {
    "h": 100.328,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.42989,
    "c": 0.10154,
    "h": 136.8
  },
  "luminance": 0.08457
}

Semantic roles & 50–950 ramp

primary
#335C1F
secondary
#784691
accent
#4FD9AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335C1F

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

Preview Lab → · Contrast checker → · Palette generator →

#335C1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva