#334104#334104

#334104 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.0% C 0.082 H 122.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#334104
RGBrgb(51, 65, 4)
HSLhsl(74, 88%, 14%)
HSVhsv(74, 94%, 25%)
CMYKcmyk(21.5%, 0%, 93.8%, 74.5%)
CIE-LABlab(25.24, -15.01, 31.94)
CIE-LCHlch(25.24, 35.29, 115.17°)
OKLaboklab(35.04% -0.0445 0.0693)
OKLCHoklch(35.04% 0.082 122.7)
XYZxyz(3.2775, 4.4932, 0.8094)
Luminance0.0449 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334104 #120441
analogous
#413004 #334104 #144104
triadic
#334104 #043341 #410433
tetradic
#334104 #044130 #120441 #410414
square
#334104 #044130 #120441 #410414
split-complementary
#334104 #041441 #300441
monochromatic
#171D02 #171D02 #334104 #607B08 #8DB40B

Accessibility & contrast

On white

11.06
#334104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#334104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334104
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334104#FFFFFF#000000##FFFFFF
##3341041.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463C00
Deuteranopia (green-blind)
#443C0A
Tritanopia (blue-blind)
#363D36
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #334104;
/* rgb */ color: rgb(51, 65, 4);
/* oklch */ color: oklch(35.0% 0.082 122.7);
Tailwind
colors: {
  custom: {
    50: '#6d754b',
    500: '#334104',
    950: '#000000',
  },
}
SCSS
$custom: #334104;
$custom-light: #6d754b;
$custom-dark: #000000;
JSON
{
  "hex": "#334104",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 4
  },
  "hsl": {
    "h": 73.77,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.35042,
    "c": 0.08236,
    "h": 122.7
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#334104
secondary
#351F82
accent
#29FF5A
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #334104

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

Preview Lab → · Contrast checker → · Palette generator →

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