#334F1F#334F1F

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

Color values

HEX#334F1F
RGBrgb(51, 79, 31)
HSLhsl(95, 44%, 22%)
HSVhsv(95, 61%, 31%)
CMYKcmyk(35.4%, 0%, 60.8%, 69%)
CIE-LABlab(30.39, -20.30, 24.71)
CIE-LCHlch(30.39, 31.97, 129.40°)
OKLaboklab(39.3% -0.0563 0.0584)
OKLCHoklch(39.3% 0.081 134)
XYZxyz(4.4085, 6.3945, 2.2981)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F1F #3B1F4F
analogous
#4B4F1F #334F1F #1F4F23
triadic
#334F1F #1F334F #4F1F33
tetradic
#334F1F #1F4B4F #3B1F4F #4F231F
square
#334F1F #1F4B4F #3B1F4F #4F231F
split-complementary
#334F1F #231F4F #4F1F4B
monochromatic
#0E1609 #17230E #334F1F #4F7B30 #6CA741

Accessibility & contrast

On white

9.21
#334F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334F1F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F1F#FFFFFF#000000##FFFFFF
##334F1F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491A
Deuteranopia (green-blind)
#4E4722
Tritanopia (blue-blind)
#334C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334f1f;
/* rgb */ color: rgb(51, 79, 31);
/* oklch */ color: oklch(39.3% 0.081 134.0);
Tailwind
colors: {
  custom: {
    50: '#6d805c',
    500: '#334f1f',
    950: '#000000',
  },
}
SCSS
$custom: #334f1f;
$custom-light: #6d805c;
$custom-dark: #000000;
JSON
{
  "hex": "#334f1f",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 31
  },
  "hsl": {
    "h": 95,
    "s": 43.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.39295,
    "c": 0.08108,
    "h": 134
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#334F1F
secondary
#6A4684
accent
#54D39E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #334F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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