#334004#334004

#334004 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.081 H 122.0°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#334004
RGBrgb(51, 64, 4)
HSLhsl(73, 88%, 13%)
HSVhsv(73, 94%, 25%)
CMYKcmyk(20.3%, 0%, 93.8%, 74.9%)
CIE-LABlab(24.89, -14.44, 31.60)
CIE-LCHlch(24.89, 34.75, 114.56°)
OKLaboklab(34.76% -0.0429 0.0687)
OKLCHoklch(34.76% 0.081 122)
XYZxyz(3.2206, 4.3794, 0.7905)
Luminance0.0438 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334004 #110440
analogous
#402F04 #334004 #154004
triadic
#334004 #043340 #400433
tetradic
#334004 #04402F #110440 #400415
square
#334004 #04402F #110440 #400415
split-complementary
#334004 #041540 #2F0440
monochromatic
#171D02 #171D02 #334004 #617A08 #8FB30B

Accessibility & contrast

On white

11.20
#334004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#334004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334004
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334004#FFFFFF#000000##FFFFFF
##3340041.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453B00
Deuteranopia (green-blind)
#433B0A
Tritanopia (blue-blind)
#363C35
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #334004;
/* rgb */ color: rgb(51, 64, 4);
/* oklch */ color: oklch(34.8% 0.081 122.0);
Tailwind
colors: {
  custom: {
    50: '#6d744b',
    500: '#334004',
    950: '#000000',
  },
}
SCSS
$custom: #334004;
$custom-light: #6d744b;
$custom-dark: #000000;
JSON
{
  "hex": "#334004",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 73,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34758,
    "c": 0.08099,
    "h": 122
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#334004
secondary
#341F81
accent
#29FE58
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #334004

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

Preview Lab → · Contrast checker → · Palette generator →

#334004 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva