#335F2E#335F2E

#335F2E is a dark, moderate green. Relative luminance 0.091; OKLCH L 44.1% C 0.091 H 141.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#335F2E
RGBrgb(51, 95, 46)
HSLhsl(114, 35%, 28%)
HSVhsv(114, 52%, 37%)
CMYKcmyk(46.3%, 0%, 51.6%, 62.7%)
CIE-LABlab(36.15, -26.24, 23.29)
CIE-LCHlch(36.15, 35.08, 138.41°)
OKLaboklab(44.06% -0.0716 0.0564)
OKLCHoklch(44.06% 0.091 141.8)
XYZxyz(5.9503, 9.0851, 4.0243)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F2E #5A2E5F
analogous
#4B5F2E #335F2E #2E5F42
triadic
#335F2E #2E335F #5F2E33
tetradic
#335F2E #2E4B5F #5A2E5F #5F422E
square
#335F2E #2E4B5F #5A2E5F #5F422E
split-complementary
#335F2E #422E5F #5F2E4B
monochromatic
#0B150A #1D361A #335F2E #498842 #62AF59

Accessibility & contrast

On white

7.45
#335F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#335F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335F2E
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F2E#FFFFFF#000000##FFFFFF
##335F2E1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61582A
Deuteranopia (green-blind)
#5B5331
Tritanopia (blue-blind)
#2F5C54
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335f2e;
/* rgb */ color: rgb(51, 95, 46);
/* oklch */ color: oklch(44.1% 0.091 141.8);
Tailwind
colors: {
  custom: {
    50: '#6e8d68',
    500: '#335f2e',
    950: '#000000',
  },
}
SCSS
$custom: #335f2e;
$custom-light: #6e8d68;
$custom-dark: #000000;
JSON
{
  "hex": "#335f2e",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 46
  },
  "hsl": {
    "h": 113.878,
    "s": 34.752,
    "l": 27.647
  },
  "oklch": {
    "l": 0.44058,
    "c": 0.09115,
    "h": 141.8
  },
  "luminance": 0.09085
}

Semantic roles & 50–950 ramp

primary
#335F2E
secondary
#8B5891
accent
#5DCBC0
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070C06
muted
#7A7D7A

Preview Lab

Preview with #335F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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