#335E1F#335E1F

#335E1F is a dark, moderate green. Relative luminance 0.088; OKLCH L 43.6% C 0.105 H 137.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#335E1F
RGBrgb(51, 94, 31)
HSLhsl(101, 50%, 25%)
HSVhsv(101, 67%, 37%)
CMYKcmyk(45.7%, 0%, 67%, 63.1%)
CIE-LABlab(35.61, -27.73, 30.66)
CIE-LCHlch(35.61, 41.34, 132.13°)
OKLaboklab(43.56% -0.0766 0.0711)
OKLCHoklch(43.56% 0.105 137.1)
XYZxyz(5.6151, 8.8078, 2.7003)
Luminance0.0881 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E1F #4A1F5E
analogous
#535E1F #335E1F #1F5E2A
triadic
#335E1F #1F335E #5E1F33
tetradic
#335E1F #1F535E #4A1F5E #5E2A1F
square
#335E1F #1F535E #4A1F5E #5E2A1F
split-complementary
#335E1F #2A1F5E #5E1F53
monochromatic
#0C1708 #1A3010 #335E1F #4C8C2E #65BA3D

Accessibility & contrast

On white

7.60
#335E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#335E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335E1F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E1F#FFFFFF#000000##FFFFFF
##335E1F1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615618
Deuteranopia (green-blind)
#5B5224
Tritanopia (blue-blind)
#315B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335e1f;
/* rgb */ color: rgb(51, 94, 31);
/* oklch */ color: oklch(43.6% 0.105 137.1);
Tailwind
colors: {
  custom: {
    50: '#6e8c5e',
    500: '#335e1f',
    950: '#000000',
  },
}
SCSS
$custom: #335e1f;
$custom-light: #6e8c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#335e1f",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 31
  },
  "hsl": {
    "h": 100.952,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.43558,
    "c": 0.10455,
    "h": 137.1
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#335E1F
secondary
#7A4693
accent
#4EDAAD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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