#335E2F#335E2F

#335E2F is a dark, moderate green. Relative luminance 0.089; OKLCH L 43.8% C 0.088 H 142.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#335E2F
RGBrgb(51, 94, 47)
HSLhsl(115, 33%, 28%)
HSVhsv(115, 50%, 37%)
CMYKcmyk(45.7%, 0%, 50%, 63.1%)
CIE-LABlab(35.82, -25.60, 22.31)
CIE-LCHlch(35.82, 33.95, 138.93°)
OKLaboklab(43.79% -0.0698 0.0543)
OKLCHoklch(43.79% 0.088 142.1)
XYZxyz(5.8808, 8.9141, 4.0995)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E2F #5A2F5E
analogous
#4A5E2F #335E2F #2F5E43
triadic
#335E2F #2F335E #5E2F33
tetradic
#335E2F #2F4A5E #5A2F5E #5E432F
square
#335E2F #2F4A5E #5A2F5E #5E432F
split-complementary
#335E2F #432F5E #5E2F4A
monochromatic
#0B140A #1D351B #335E2F #498743 #62AD5B

Accessibility & contrast

On white

7.55
#335E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#335E2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335E2F
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E2F#FFFFFF#000000##FFFFFF
##335E2F1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60572B
Deuteranopia (green-blind)
#5A5332
Tritanopia (blue-blind)
#2F5B53
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335e2f;
/* rgb */ color: rgb(51, 94, 47);
/* oklch */ color: oklch(43.8% 0.088 142.1);
Tailwind
colors: {
  custom: {
    50: '#6e8c68',
    500: '#335e2f',
    950: '#000000',
  },
}
SCSS
$custom: #335e2f;
$custom-light: #6e8c68;
$custom-dark: #000000;
JSON
{
  "hex": "#335e2f",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 47
  },
  "hsl": {
    "h": 114.894,
    "s": 33.333,
    "l": 27.647
  },
  "oklch": {
    "l": 0.43794,
    "c": 0.08841,
    "h": 142.1
  },
  "luminance": 0.08914
}

Semantic roles & 50–950 ramp

primary
#335E2F
secondary
#8B5990
accent
#5EC9C0
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070C06
muted
#7A7D7A

Preview Lab

Preview with #335E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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