#304A0F#304A0F

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

Color values

HEX#304A0F
RGBrgb(48, 74, 15)
HSLhsl(86, 66%, 17%)
HSVhsv(86, 80%, 29%)
CMYKcmyk(35.1%, 0%, 79.7%, 71%)
CIE-LABlab(28.27, -20.56, 30.31)
CIE-LCHlch(28.27, 36.63, 124.16°)
OKLaboklab(37.47% -0.0583 0.0681)
OKLCHoklch(37.47% 0.09 130.6)
XYZxyz(3.7539, 5.5603, 1.3273)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A0F #290F4A
analogous
#4A470F #304A0F #124A0F
triadic
#304A0F #0F304A #4A0F30
tetradic
#304A0F #0F4A47 #290F4A #4A0F12
square
#304A0F #0F4A47 #290F4A #4A0F12
split-complementary
#304A0F #0F124A #470F4A
monochromatic
#111905 #111905 #304A0F #517D19 #72B024

Accessibility & contrast

On white

9.94
#304A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304A0F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A0F#FFFFFF#000000##FFFFFF
##304A0F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4405
Deuteranopia (green-blind)
#4A4214
Tritanopia (blue-blind)
#31473E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304a0f;
/* rgb */ color: rgb(48, 74, 15);
/* oklch */ color: oklch(37.5% 0.090 130.6);
Tailwind
colors: {
  custom: {
    50: '#6b7c52',
    500: '#304a0f',
    950: '#000000',
  },
}
SCSS
$custom: #304a0f;
$custom-light: #6b7c52;
$custom-dark: #000000;
JSON
{
  "hex": "#304a0f",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 86.441,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37474,
    "c": 0.08962,
    "h": 130.6
  },
  "luminance": 0.0556
}

Semantic roles & 50–950 ramp

primary
#304A0F
secondary
#553084
accent
#3FE98A
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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