#334A18#334A18

#334A18 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.080 H 130.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#334A18
RGBrgb(51, 74, 24)
HSLhsl(88, 51%, 19%)
HSVhsv(88, 68%, 29%)
CMYKcmyk(31.1%, 0%, 67.6%, 71%)
CIE-LABlab(28.56, -18.44, 26.37)
CIE-LCHlch(28.56, 32.18, 124.97°)
OKLaboklab(37.78% -0.0518 0.0611)
OKLCHoklch(37.78% 0.08 130.3)
XYZxyz(3.9789, 5.6672, 1.7482)
Luminance0.0567 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A18 #2F184A
analogous
#4A4818 #334A18 #1A4A18
triadic
#334A18 #18334A #4A1833
tetradic
#334A18 #184A48 #2F184A #4A181A
square
#334A18 #184A48 #2F184A #4A181A
split-complementary
#334A18 #181A4A #48184A
monochromatic
#101707 #131C09 #334A18 #537827 #73A636

Accessibility & contrast

On white

9.84
#334A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#334A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A18
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A18#FFFFFF#000000##FFFFFF
##334A181.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4412
Deuteranopia (green-blind)
#4A431C
Tritanopia (blue-blind)
#34473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334a18;
/* rgb */ color: rgb(51, 74, 24);
/* oklch */ color: oklch(37.8% 0.080 130.3);
Tailwind
colors: {
  custom: {
    50: '#6d7c57',
    500: '#334a18',
    950: '#000000',
  },
}
SCSS
$custom: #334a18;
$custom-light: #6d7c57;
$custom-dark: #000000;
JSON
{
  "hex": "#334a18",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 87.6,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.37782,
    "c": 0.08013,
    "h": 130.3
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#334A18
secondary
#5C3D81
accent
#4DDA8E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334A18

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

Preview Lab → · Contrast checker → · Palette generator →

#334A18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva