#304F15#304F15

#304F15 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.092 H 133.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#304F15
RGBrgb(48, 79, 21)
HSLhsl(92, 58%, 20%)
HSVhsv(92, 73%, 31%)
CMYKcmyk(39.2%, 0%, 73.4%, 69%)
CIE-LABlab(30.09, -22.61, 29.47)
CIE-LCHlch(30.09, 37.15, 127.50°)
OKLaboklab(38.97% -0.0633 0.0673)
OKLCHoklch(38.97% 0.092 133.3)
XYZxyz(4.1502, 6.2743, 1.7017)
Luminance0.0627 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F15 #34154F
analogous
#4D4F15 #304F15 #154F17
triadic
#304F15 #15304F #4F1530
tetradic
#304F15 #154D4F #34154F #4F1715
square
#304F15 #154D4F #34154F #4F1715
split-complementary
#304F15 #17154F #4F154D
monochromatic
#0F1806 #131F08 #304F15 #4D7F22 #6BB02F

Accessibility & contrast

On white

9.31
#304F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304F15
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F15#FFFFFF#000000##FFFFFF
##304F151.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52480D
Deuteranopia (green-blind)
#4E461A
Tritanopia (blue-blind)
#304C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304f15;
/* rgb */ color: rgb(48, 79, 21);
/* oklch */ color: oklch(39.0% 0.092 133.3);
Tailwind
colors: {
  custom: {
    50: '#6b8056',
    500: '#304f15',
    950: '#000000',
  },
}
SCSS
$custom: #304f15;
$custom-light: #6b8056;
$custom-dark: #000000;
JSON
{
  "hex": "#304f15",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 21
  },
  "hsl": {
    "h": 92.069,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.0924,
    "h": 133.3
  },
  "luminance": 0.06274
}

Semantic roles & 50–950 ramp

primary
#304F15
secondary
#633987
accent
#47E199
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304F15

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

Preview Lab → · Contrast checker → · Palette generator →

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