#334D0F#334D0F

#334D0F is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.5% C 0.092 H 129.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#334D0F
RGBrgb(51, 77, 15)
HSLhsl(85, 67%, 18%)
HSVhsv(85, 81%, 30%)
CMYKcmyk(33.8%, 0%, 80.5%, 69.8%)
CIE-LABlab(29.53, -20.81, 31.61)
CIE-LCHlch(29.53, 37.85, 123.36°)
OKLaboklab(38.55% -0.0592 0.0707)
OKLCHoklch(38.55% 0.092 129.9)
XYZxyz(4.1053, 6.0459, 1.4025)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D0F #290F4D
analogous
#4D480F #334D0F #144D0F
triadic
#334D0F #0F334D #4D0F33
tetradic
#334D0F #0F4D48 #290F4D #4D0F14
square
#334D0F #0F4D48 #290F4D #4D0F14
split-complementary
#334D0F #0F144D #480F4D
monochromatic
#111A05 #111A05 #334D0F #558019 #77B323

Accessibility & contrast

On white

9.51
#334D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#334D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D0F
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D0F#FFFFFF#000000##FFFFFF
##334D0F1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514704
Deuteranopia (green-blind)
#4D4515
Tritanopia (blue-blind)
#354941
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334d0f;
/* rgb */ color: rgb(51, 77, 15);
/* oklch */ color: oklch(38.5% 0.092 129.9);
Tailwind
colors: {
  custom: {
    50: '#6d7f52',
    500: '#334d0f',
    950: '#000000',
  },
}
SCSS
$custom: #334d0f;
$custom-light: #6d7f52;
$custom-dark: #000000;
JSON
{
  "hex": "#334d0f",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 85.161,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38546,
    "c": 0.09222,
    "h": 129.9
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#334D0F
secondary
#553187
accent
#3EEA86
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #334D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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