#304A15#304A15

#304A15 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.5% C 0.085 H 131.7°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#304A15
RGBrgb(48, 74, 21)
HSLhsl(89, 56%, 19%)
HSVhsv(89, 72%, 29%)
CMYKcmyk(35.1%, 0%, 71.6%, 71%)
CIE-LABlab(28.33, -20.05, 27.58)
CIE-LCHlch(28.33, 34.10, 126.01°)
OKLaboklab(37.53% -0.0563 0.0633)
OKLCHoklch(37.53% 0.085 131.7)
XYZxyz(3.8030, 5.5799, 1.5860)
Luminance0.0558 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A15 #2F154A
analogous
#4A4915 #304A15 #154A15
triadic
#304A15 #15304A #4A1530
tetradic
#304A15 #154A49 #2F154A #4A1515
square
#304A15 #154A49 #2F154A #4A1515
split-complementary
#304A15 #15154A #49154A
monochromatic
#0F1807 #111A07 #304A15 #4F7A23 #6EA930

Accessibility & contrast

On white

9.92
#304A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304A15
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A15#FFFFFF#000000##FFFFFF
##304A151.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304a15;
/* rgb */ color: rgb(48, 74, 21);
/* oklch */ color: oklch(37.5% 0.085 131.7);
Tailwind
colors: {
  custom: {
    50: '#6b7c55',
    500: '#304a15',
    950: '#000000',
  },
}
SCSS
$custom: #304a15;
$custom-light: #6b7c55;
$custom-dark: #000000;
JSON
{
  "hex": "#304a15",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 21
  },
  "hsl": {
    "h": 89.434,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.37533,
    "c": 0.08474,
    "h": 131.7
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#304A15
secondary
#5D3982
accent
#49DF92
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304A15

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

Preview Lab → · Contrast checker → · Palette generator →

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