#304D18#304D18

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

Color values

HEX#304D18
RGBrgb(48, 77, 24)
HSLhsl(93, 52%, 20%)
HSVhsv(93, 69%, 30%)
CMYKcmyk(37.7%, 0%, 68.8%, 69.8%)
CIE-LABlab(29.42, -21.30, 27.27)
CIE-LCHlch(29.42, 34.60, 128.00°)
OKLaboklab(38.43% -0.0595 0.0631)
OKLCHoklch(38.43% 0.087 133.3)
XYZxyz(4.0376, 6.0019, 1.8097)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D18 #35184D
analogous
#4B4D18 #304D18 #184D1B
triadic
#304D18 #18304D #4D1830
tetradic
#304D18 #184B4D #35184D #4D1B18
square
#304D18 #184B4D #35184D #4D1B18
split-complementary
#304D18 #1B184D #4D184B
monochromatic
#0F1707 #131E09 #304D18 #4D7C27 #6AAA35

Accessibility & contrast

On white

9.54
#304D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304D18
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D18#FFFFFF#000000##FFFFFF
##304D181.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504712
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#304A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304d18;
/* rgb */ color: rgb(48, 77, 24);
/* oklch */ color: oklch(38.4% 0.087 133.3);
Tailwind
colors: {
  custom: {
    50: '#6b7f57',
    500: '#304d18',
    950: '#000000',
  },
}
SCSS
$custom: #304d18;
$custom-light: #6b7f57;
$custom-dark: #000000;
JSON
{
  "hex": "#304d18",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 24
  },
  "hsl": {
    "h": 92.83,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.3843,
    "c": 0.08668,
    "h": 133.3
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#304D18
secondary
#643D84
accent
#4CDC9B
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304D18

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

Preview Lab → · Contrast checker → · Palette generator →

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