#304B18#304B18

#304B18 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.9% C 0.084 H 132.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#304B18
RGBrgb(48, 75, 24)
HSLhsl(92, 52%, 19%)
HSVhsv(92, 68%, 29%)
CMYKcmyk(36%, 0%, 68%, 70.6%)
CIE-LABlab(28.71, -20.27, 26.48)
CIE-LCHlch(28.71, 33.35, 127.43°)
OKLaboklab(37.86% -0.0566 0.0614)
OKLCHoklch(37.86% 0.084 132.7)
XYZxyz(3.8998, 5.7263, 1.7638)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B18 #33184B
analogous
#4A4B18 #304B18 #184B1A
triadic
#304B18 #18304B #4B1830
tetradic
#304B18 #184A4B #33184B #4B1A18
square
#304B18 #184A4B #33184B #4B1A18
split-complementary
#304B18 #1A184B #4B184A
monochromatic
#0F1707 #121D09 #304B18 #4E7927 #6BA836

Accessibility & contrast

On white

9.79
#304B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#304B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304B18
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B18#FFFFFF#000000##FFFFFF
##304B181.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4512
Deuteranopia (green-blind)
#4A431C
Tritanopia (blue-blind)
#304840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #304b18;
/* rgb */ color: rgb(48, 75, 24);
/* oklch */ color: oklch(37.9% 0.084 132.7);
Tailwind
colors: {
  custom: {
    50: '#6a7d57',
    500: '#304b18',
    950: '#000000',
  },
}
SCSS
$custom: #304b18;
$custom-light: #6a7d57;
$custom-dark: #000000;
JSON
{
  "hex": "#304b18",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 24
  },
  "hsl": {
    "h": 91.765,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.37856,
    "c": 0.08353,
    "h": 132.7
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#304B18
secondary
#613D82
accent
#4DDB98
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304B18

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

Preview Lab → · Contrast checker → · Palette generator →

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