#304A09#304A09

#304A09 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.4% C 0.093 H 129.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#304A09
RGBrgb(48, 74, 9)
HSLhsl(84, 78%, 16%)
HSVhsv(84, 88%, 29%)
CMYKcmyk(35.1%, 0%, 87.8%, 71%)
CIE-LABlab(28.24, -20.96, 32.61)
CIE-LCHlch(28.24, 38.76, 122.73°)
OKLaboklab(37.43% -0.0599 0.0718)
OKLCHoklch(37.43% 0.093 129.8)
XYZxyz(3.7170, 5.5455, 1.1329)
Luminance0.0555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A09 #23094A
analogous
#4A4409 #304A09 #104A09
triadic
#304A09 #09304A #4A0930
tetradic
#304A09 #094A44 #23094A #4A0910
square
#304A09 #094A44 #23094A #4A0910
split-complementary
#304A09 #09104A #44094A
monochromatic
#121B03 #121B03 #304A09 #538110 #77B716

Accessibility & contrast

On white

9.96
#304A09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#304A09 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A09
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A09#FFFFFF#000000##FFFFFF
##304A091.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4400
Deuteranopia (green-blind)
#4A4210
Tritanopia (blue-blind)
#32463E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304a09;
/* rgb */ color: rgb(48, 74, 9);
/* oklch */ color: oklch(37.4% 0.093 129.8);
Tailwind
colors: {
  custom: {
    50: '#6b7c4f',
    500: '#304a09',
    950: '#000000',
  },
}
SCSS
$custom: #304a09;
$custom-light: #6b7c4f;
$custom-dark: #000000;
JSON
{
  "hex": "#304a09",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 9
  },
  "hsl": {
    "h": 84,
    "s": 78.313,
    "l": 16.275
  },
  "oklch": {
    "l": 0.37429,
    "c": 0.09348,
    "h": 129.8
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#304A09
secondary
#4E2787
accent
#33F581
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304A09

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

Preview Lab → · Contrast checker → · Palette generator →

#304A09 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva