#334F0F#334F0F

#334F0F is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.1% C 0.095 H 130.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#334F0F
RGBrgb(51, 79, 15)
HSLhsl(86, 68%, 18%)
HSVhsv(86, 81%, 31%)
CMYKcmyk(35.4%, 0%, 81%, 69%)
CIE-LABlab(30.23, -21.84, 32.30)
CIE-LCHlch(30.23, 38.99, 124.06°)
OKLaboklab(39.12% -0.062 0.0722)
OKLCHoklch(39.12% 0.095 130.7)
XYZxyz(4.2474, 6.3301, 1.4499)
Luminance0.0633 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F0F #2B0F4F
analogous
#4F4B0F #334F0F #134F0F
triadic
#334F0F #0F334F #4F0F33
tetradic
#334F0F #0F4F4B #2B0F4F #4F0F13
square
#334F0F #0F4F4B #2B0F4F #4F0F13
split-complementary
#334F0F #0F134F #4B0F4F
monochromatic
#111A05 #121C05 #334F0F #548219 #75B623

Accessibility & contrast

On white

9.27
#334F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#334F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F0F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F0F#FFFFFF#000000##FFFFFF
##334F0F1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534904
Deuteranopia (green-blind)
#4F4615
Tritanopia (blue-blind)
#344B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334f0f;
/* rgb */ color: rgb(51, 79, 15);
/* oklch */ color: oklch(39.1% 0.095 130.7);
Tailwind
colors: {
  custom: {
    50: '#6e8053',
    500: '#334f0f',
    950: '#000000',
  },
}
SCSS
$custom: #334f0f;
$custom-light: #6e8053;
$custom-dark: #000000;
JSON
{
  "hex": "#334f0f",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 86.25,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.39118,
    "c": 0.09513,
    "h": 130.7
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#334F0F
secondary
#573189
accent
#3DEB89
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #334F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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