#304F11#304F11

#304F11 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.096 H 132.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#304F11
RGBrgb(48, 79, 17)
HSLhsl(90, 65%, 19%)
HSVhsv(90, 78%, 31%)
CMYKcmyk(39.2%, 0%, 78.5%, 69%)
CIE-LABlab(30.06, -22.95, 31.24)
CIE-LCHlch(30.06, 38.77, 126.31°)
OKLaboklab(38.93% -0.0646 0.0704)
OKLCHoklch(38.93% 0.096 132.6)
XYZxyz(4.1160, 6.2606, 1.5218)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F11 #30114F
analogous
#4F4F11 #304F11 #114F11
triadic
#304F11 #11304F #4F1130
tetradic
#304F11 #114F4F #30114F #4F1111
square
#304F11 #114F4F #30114F #4F1111
split-complementary
#304F11 #11114F #4F114F
monochromatic
#0F1905 #111D06 #304F11 #4F811C #6DB427

Accessibility & contrast

On white

9.32
#304F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#304F11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F11
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F11#FFFFFF#000000##FFFFFF
##304F111.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534807
Deuteranopia (green-blind)
#4E4617
Tritanopia (blue-blind)
#304B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304f11;
/* rgb */ color: rgb(48, 79, 17);
/* oklch */ color: oklch(38.9% 0.096 132.6);
Tailwind
colors: {
  custom: {
    50: '#6b8054',
    500: '#304f11',
    950: '#000000',
  },
}
SCSS
$custom: #304f11;
$custom-light: #6b8054;
$custom-dark: #000000;
JSON
{
  "hex": "#304f11",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 17
  },
  "hsl": {
    "h": 90,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38935,
    "c": 0.09552,
    "h": 132.6
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#304F11
secondary
#5E3388
accent
#40E894
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304F11

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

Preview Lab → · Contrast checker → · Palette generator →

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