#304A0B#304A0B

#304A0B is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.4% C 0.092 H 130.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#304A0B
RGBrgb(48, 74, 11)
HSLhsl(85, 74%, 17%)
HSVhsv(85, 85%, 29%)
CMYKcmyk(35.1%, 0%, 85.1%, 71%)
CIE-LABlab(28.25, -20.84, 31.89)
CIE-LCHlch(28.25, 38.09, 123.16°)
OKLaboklab(37.44% -0.0594 0.0707)
OKLCHoklch(37.44% 0.092 130)
XYZxyz(3.7281, 5.5500, 1.1914)
Luminance0.0555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A0B #250B4A
analogous
#4A450B #304A0B #114A0B
triadic
#304A0B #0B304A #4A0B30
tetradic
#304A0B #0B4A45 #250B4A #4A0B11
square
#304A0B #0B4A45 #250B4A #4A0B11
split-complementary
#304A0B #0B114A #450B4A
monochromatic
#111B04 #111B04 #304A0B #537F13 #75B51B

Accessibility & contrast

On white

9.95
#304A0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304A0B
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A0B#FFFFFF#000000##FFFFFF
##304A0B1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4400
Deuteranopia (green-blind)
#4A4212
Tritanopia (blue-blind)
#31463E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304a0b;
/* rgb */ color: rgb(48, 74, 11);
/* oklch */ color: oklch(37.4% 0.092 130.0);
Tailwind
colors: {
  custom: {
    50: '#6b7c50',
    500: '#304a0b',
    950: '#000000',
  },
}
SCSS
$custom: #304a0b;
$custom-light: #6b7c50;
$custom-dark: #000000;
JSON
{
  "hex": "#304a0b",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 11
  },
  "hsl": {
    "h": 84.762,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.37443,
    "c": 0.0923,
    "h": 130
  },
  "luminance": 0.0555
}

Semantic roles & 50–950 ramp

primary
#304A0B
secondary
#502B86
accent
#37F184
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304A0B

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

Preview Lab → · Contrast checker → · Palette generator →

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