#334F1C#334F1C

#334F1C is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.084 H 133.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#334F1C
RGBrgb(51, 79, 28)
HSLhsl(93, 48%, 21%)
HSVhsv(93, 65%, 31%)
CMYKcmyk(35.4%, 0%, 64.6%, 69%)
CIE-LABlab(30.35, -20.65, 26.28)
CIE-LCHlch(30.35, 33.43, 128.16°)
OKLaboklab(39.25% -0.0575 0.0614)
OKLCHoklch(39.25% 0.084 133.1)
XYZxyz(4.3708, 6.3795, 2.0995)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F1C #381C4F
analogous
#4C4F1C #334F1C #1C4F1E
triadic
#334F1C #1C334F #4F1C33
tetradic
#334F1C #1C4C4F #381C4F #4F1E1C
square
#334F1C #1C4C4F #381C4F #4F1E1C
split-complementary
#334F1C #1E1C4F #4F1C4C
monochromatic
#0F1708 #16220C #334F1C #507C2C #6DA93C

Accessibility & contrast

On white

9.23
#334F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#334F1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F1C
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F1C#FFFFFF#000000##FFFFFF
##334F1C1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524917
Deuteranopia (green-blind)
#4E4720
Tritanopia (blue-blind)
#334C44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334f1c;
/* rgb */ color: rgb(51, 79, 28);
/* oklch */ color: oklch(39.3% 0.084 133.1);
Tailwind
colors: {
  custom: {
    50: '#6d805a',
    500: '#334f1c',
    950: '#000000',
  },
}
SCSS
$custom: #334f1c;
$custom-light: #6d805a;
$custom-dark: #000000;
JSON
{
  "hex": "#334f1c",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 28
  },
  "hsl": {
    "h": 92.941,
    "s": 47.664,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.08416,
    "h": 133.1
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#334F1C
secondary
#674285
accent
#51D79B
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #334F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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