#304004#304004

#304004 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.5% C 0.083 H 124.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#304004
RGBrgb(48, 64, 4)
HSLhsl(76, 88%, 13%)
HSVhsv(76, 94%, 25%)
CMYKcmyk(25%, 0%, 93.8%, 74.9%)
CIE-LABlab(24.65, -15.91, 31.29)
CIE-LCHlch(24.65, 35.11, 116.95°)
OKLaboklab(34.51% -0.0467 0.0682)
OKLCHoklch(34.51% 0.083 124.4)
XYZxyz(3.0743, 4.3039, 0.7836)
Luminance0.0430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304004 #140440
analogous
#403204 #304004 #124004
triadic
#304004 #043040 #400430
tetradic
#304004 #044032 #140440 #400412
square
#304004 #044032 #140440 #400412
split-complementary
#304004 #041240 #320440
monochromatic
#161D02 #161D02 #304004 #5B7A08 #86B30B

Accessibility & contrast

On white

11.29
#304004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#304004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304004
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304004#FFFFFF#000000##FFFFFF
##3040041.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#423A0A
Tritanopia (blue-blind)
#333C35
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #304004;
/* rgb */ color: rgb(48, 64, 4);
/* oklch */ color: oklch(34.5% 0.083 124.4);
Tailwind
colors: {
  custom: {
    50: '#6b744b',
    500: '#304004',
    950: '#000000',
  },
}
SCSS
$custom: #304004;
$custom-light: #6b744b;
$custom-dark: #000000;
JSON
{
  "hex": "#304004",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 76,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34506,
    "c": 0.08265,
    "h": 124.4
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#304004
secondary
#391F81
accent
#29FE62
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304004

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

Preview Lab → · Contrast checker → · Palette generator →

#304004 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva