#335A23#335A23

#335A23 is a dark, moderate green. Relative luminance 0.081; OKLCH L 42.5% C 0.095 H 137.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#335A23
RGBrgb(51, 90, 35)
HSLhsl(103, 44%, 25%)
HSVhsv(103, 61%, 35%)
CMYKcmyk(43.3%, 0%, 61.1%, 64.7%)
CIE-LABlab(34.27, -25.35, 27.08)
CIE-LCHlch(34.27, 37.09, 133.11°)
OKLaboklab(42.47% -0.0698 0.0639)
OKLCHoklch(42.47% 0.095 137.5)
XYZxyz(5.3246, 8.1372, 2.8799)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A23 #4A235A
analogous
#4F5A23 #335A23 #235A2E
triadic
#335A23 #23335A #5A2333
tetradic
#335A23 #234F5A #4A235A #5A2E23
square
#335A23 #234F5A #4A235A #5A2E23
split-complementary
#335A23 #2E235A #5A234F
monochromatic
#0C1609 #1A2E12 #335A23 #4C8634 #65B245

Accessibility & contrast

On white

7.99
#335A23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#335A23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A23
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A23#FFFFFF#000000##FFFFFF
##335A231.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D531E
Deuteranopia (green-blind)
#574F27
Tritanopia (blue-blind)
#31574E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335a23;
/* rgb */ color: rgb(51, 90, 35);
/* oklch */ color: oklch(42.5% 0.095 137.5);
Tailwind
colors: {
  custom: {
    50: '#6e8960',
    500: '#335a23',
    950: '#000000',
  },
}
SCSS
$custom: #335a23;
$custom-light: #6e8960;
$custom-dark: #000000;
JSON
{
  "hex": "#335a23",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 35
  },
  "hsl": {
    "h": 102.545,
    "s": 44,
    "l": 24.51
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.09465,
    "h": 137.5
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#335A23
secondary
#7A4B8E
accent
#54D4AF
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B05
muted
#7A7C79

Preview Lab

Preview with #335A23

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

Preview Lab → · Contrast checker → · Palette generator →

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