#304008#304008

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

Color values

HEX#304008
RGBrgb(48, 64, 8)
HSLhsl(77, 78%, 14%)
HSVhsv(77, 88%, 25%)
CMYKcmyk(25%, 0%, 87.5%, 74.9%)
CIE-LABlab(24.68, -15.66, 29.69)
CIE-LCHlch(24.68, 33.57, 117.80°)
OKLaboklab(34.54% -0.0456 0.0655)
OKLCHoklch(34.54% 0.08 124.8)
XYZxyz(3.0962, 4.3127, 0.8990)
Luminance0.0431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304008 #180840
analogous
#403408 #304008 #144008
triadic
#304008 #083040 #400830
tetradic
#304008 #084034 #180840 #400814
square
#304008 #084034 #180840 #400814
split-complementary
#304008 #081440 #340840
monochromatic
#141B03 #141B03 #304008 #59760F #82AD16

Accessibility & contrast

On white

11.27
#304008 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304008
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304008#FFFFFF#000000##FFFFFF
##3040081.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304008;
/* rgb */ color: rgb(48, 64, 8);
/* oklch */ color: oklch(34.5% 0.080 124.8);
Tailwind
colors: {
  custom: {
    50: '#6b744d',
    500: '#304008',
    950: '#000000',
  },
}
SCSS
$custom: #304008;
$custom-light: #6b744d;
$custom-dark: #000000;
JSON
{
  "hex": "#304008",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 8
  },
  "hsl": {
    "h": 77.143,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34537,
    "c": 0.07979,
    "h": 124.8
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#304008
secondary
#3F257E
accent
#34F46B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304008

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

Preview Lab → · Contrast checker → · Palette generator →

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