#335C23#335C23

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

Color values

HEX#335C23
RGBrgb(51, 92, 35)
HSLhsl(103, 45%, 25%)
HSVhsv(103, 62%, 36%)
CMYKcmyk(44.6%, 0%, 62%, 63.9%)
CIE-LABlab(34.96, -26.32, 27.89)
CIE-LCHlch(34.96, 38.34, 133.34°)
OKLaboklab(43.04% -0.0725 0.0656)
OKLCHoklch(43.04% 0.098 137.8)
XYZxyz(5.4956, 8.4791, 2.9368)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C23 #4C235C
analogous
#505C23 #335C23 #235C30
triadic
#335C23 #23335C #5C2333
tetradic
#335C23 #23505C #4C235C #5C3023
square
#335C23 #23505C #4C235C #5C3023
split-complementary
#335C23 #30235C #5C2350
monochromatic
#0C1608 #1A3012 #335C23 #4C8834 #64B545

Accessibility & contrast

On white

7.79
#335C23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#335C23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C23
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C23#FFFFFF#000000##FFFFFF
##335C231.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F541D
Deuteranopia (green-blind)
#595127
Tritanopia (blue-blind)
#315950
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c23;
/* rgb */ color: rgb(51, 92, 35);
/* oklch */ color: oklch(43.0% 0.098 137.8);
Tailwind
colors: {
  custom: {
    50: '#6e8a60',
    500: '#335c23',
    950: '#000000',
  },
}
SCSS
$custom: #335c23;
$custom-light: #6e8a60;
$custom-dark: #000000;
JSON
{
  "hex": "#335c23",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 35
  },
  "hsl": {
    "h": 103.158,
    "s": 44.882,
    "l": 24.902
  },
  "oklch": {
    "l": 0.43041,
    "c": 0.09777,
    "h": 137.8
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#335C23
secondary
#7C4B90
accent
#53D5B0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C05
muted
#7A7D79

Preview Lab

Preview with #335C23

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

Preview Lab → · Contrast checker → · Palette generator →

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