#334A0F#334A0F

#334A0F is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.7% C 0.088 H 128.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#334A0F
RGBrgb(51, 74, 15)
HSLhsl(83, 66%, 17%)
HSVhsv(83, 80%, 29%)
CMYKcmyk(31.1%, 0%, 79.7%, 71%)
CIE-LABlab(28.47, -19.24, 30.57)
CIE-LCHlch(28.47, 36.12, 122.19°)
OKLaboklab(37.69% -0.0549 0.0686)
OKLCHoklch(37.69% 0.088 128.7)
XYZxyz(3.9002, 5.6358, 1.3342)
Luminance0.0564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A0F #260F4A
analogous
#4A440F #334A0F #154A0F
triadic
#334A0F #0F334A #4A0F33
tetradic
#334A0F #0F4A44 #260F4A #4A0F15
square
#334A0F #0F4A44 #260F4A #4A0F15
split-complementary
#334A0F #0F154A #440F4A
monochromatic
#121905 #121905 #334A0F #567D19 #79B024

Accessibility & contrast

On white

9.87
#334A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#334A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A0F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A0F#FFFFFF#000000##FFFFFF
##334A0F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4405
Deuteranopia (green-blind)
#4B4314
Tritanopia (blue-blind)
#35463F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334a0f;
/* rgb */ color: rgb(51, 74, 15);
/* oklch */ color: oklch(37.7% 0.088 128.7);
Tailwind
colors: {
  custom: {
    50: '#6d7c52',
    500: '#334a0f',
    950: '#000000',
  },
}
SCSS
$custom: #334a0f;
$custom-light: #6d7c52;
$custom-dark: #000000;
JSON
{
  "hex": "#334a0f",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 83.39,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37689,
    "c": 0.08782,
    "h": 128.7
  },
  "luminance": 0.05636
}

Semantic roles & 50–950 ramp

primary
#334A0F
secondary
#513084
accent
#3FE981
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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