#304D11#304D11

#304D11 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.4% C 0.093 H 131.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#304D11
RGBrgb(48, 77, 17)
HSLhsl(89, 64%, 18%)
HSVhsv(89, 78%, 30%)
CMYKcmyk(37.7%, 0%, 77.9%, 69.8%)
CIE-LABlab(29.35, -21.95, 30.52)
CIE-LCHlch(29.35, 37.60, 125.72°)
OKLaboklab(38.36% -0.0619 0.0689)
OKLCHoklch(38.36% 0.093 131.9)
XYZxyz(3.9739, 5.9765, 1.4744)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D11 #2E114D
analogous
#4D4C11 #304D11 #124D11
triadic
#304D11 #11304D #4D1130
tetradic
#304D11 #114D4C #2E114D #4D1112
square
#304D11 #114D4C #2E114D #4D1112
split-complementary
#304D11 #11124D #4C114D
monochromatic
#101906 #111B06 #304D11 #4F7F1C #6FB127

Accessibility & contrast

On white

9.57
#304D11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#304D11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D11
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D11#FFFFFF#000000##FFFFFF
##304D111.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514707
Deuteranopia (green-blind)
#4D4416
Tritanopia (blue-blind)
#314A41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304d11;
/* rgb */ color: rgb(48, 77, 17);
/* oklch */ color: oklch(38.4% 0.093 131.9);
Tailwind
colors: {
  custom: {
    50: '#6b7f53',
    500: '#304d11',
    950: '#000000',
  },
}
SCSS
$custom: #304d11;
$custom-light: #6b7f53;
$custom-dark: #000000;
JSON
{
  "hex": "#304d11",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 17
  },
  "hsl": {
    "h": 89,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38357,
    "c": 0.09258,
    "h": 131.9
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#304D11
secondary
#5C3386
accent
#41E791
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304D11

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

Preview Lab → · Contrast checker → · Palette generator →

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