#335B1F#335B1F

#335B1F is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.7% C 0.100 H 136.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#335B1F
RGBrgb(51, 91, 31)
HSLhsl(100, 49%, 24%)
HSVhsv(100, 66%, 36%)
CMYKcmyk(44%, 0%, 65.9%, 64.3%)
CIE-LABlab(34.57, -26.31, 29.50)
CIE-LCHlch(34.57, 39.52, 131.73°)
OKLaboklab(42.71% -0.0727 0.0687)
OKLCHoklch(42.71% 0.1 136.7)
XYZxyz(5.3535, 8.2846, 2.6131)
Luminance0.0828 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B1F #471F5B
analogous
#515B1F #335B1F #1F5B29
triadic
#335B1F #1F335B #5B1F33
tetradic
#335B1F #1F515B #471F5B #5B291F
square
#335B1F #1F515B #471F5B #5B291F
split-complementary
#335B1F #291F5B #5B1F51
monochromatic
#0D1708 #192D0F #335B1F #4D892F #66B63E

Accessibility & contrast

On white

7.90
#335B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#335B1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B1F
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B1F#FFFFFF#000000##FFFFFF
##335B1F1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5318
Deuteranopia (green-blind)
#595024
Tritanopia (blue-blind)
#31584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b1f;
/* rgb */ color: rgb(51, 91, 31);
/* oklch */ color: oklch(42.7% 0.100 136.7);
Tailwind
colors: {
  custom: {
    50: '#6e8a5d',
    500: '#335b1f',
    950: '#000000',
  },
}
SCSS
$custom: #335b1f;
$custom-light: #6e8a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#335b1f",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 31
  },
  "hsl": {
    "h": 100,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.42705,
    "c": 0.10003,
    "h": 136.7
  },
  "luminance": 0.08285
}

Semantic roles & 50–950 ramp

primary
#335B1F
secondary
#774690
accent
#4FD9AB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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