#304A18#304A18

#304A18 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.6% C 0.082 H 132.3°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#304A18
RGBrgb(48, 74, 24)
HSLhsl(91, 51%, 19%)
HSVhsv(91, 68%, 29%)
CMYKcmyk(35.1%, 0%, 67.6%, 71%)
CIE-LABlab(28.36, -19.74, 26.09)
CIE-LCHlch(28.36, 32.72, 127.12°)
OKLaboklab(37.57% -0.0552 0.0606)
OKLCHoklch(37.57% 0.082 132.3)
XYZxyz(3.8325, 5.5918, 1.7414)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A18 #32184A
analogous
#494A18 #304A18 #184A19
triadic
#304A18 #18304A #4A1830
tetradic
#304A18 #18494A #32184A #4A1918
square
#304A18 #18494A #32184A #4A1918
split-complementary
#304A18 #19184A #4A1849
monochromatic
#0F1707 #121C09 #304A18 #4E7827 #6CA636

Accessibility & contrast

On white

9.91
#304A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#304A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A18
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A18#FFFFFF#000000##FFFFFF
##304A181.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4412
Deuteranopia (green-blind)
#4A421C
Tritanopia (blue-blind)
#31473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304a18;
/* rgb */ color: rgb(48, 74, 24);
/* oklch */ color: oklch(37.6% 0.082 132.3);
Tailwind
colors: {
  custom: {
    50: '#6a7c57',
    500: '#304a18',
    950: '#000000',
  },
}
SCSS
$custom: #304a18;
$custom-light: #6a7c57;
$custom-dark: #000000;
JSON
{
  "hex": "#304a18",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 91.2,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.37568,
    "c": 0.08194,
    "h": 132.3
  },
  "luminance": 0.05592
}

Semantic roles & 50–950 ramp

primary
#304A18
secondary
#603D81
accent
#4DDA97
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304A18

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

Preview Lab → · Contrast checker → · Palette generator →

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