#304B17#304B17

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

Color values

HEX#304B17
RGBrgb(48, 75, 23)
HSLhsl(91, 53%, 19%)
HSVhsv(91, 69%, 29%)
CMYKcmyk(36%, 0%, 69.3%, 70.6%)
CIE-LABlab(28.70, -20.37, 26.99)
CIE-LCHlch(28.70, 33.81, 127.05°)
OKLaboklab(37.84% -0.057 0.0623)
OKLCHoklch(37.84% 0.084 132.5)
XYZxyz(3.8896, 5.7223, 1.7100)
Luminance0.0572 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B17 #32174B
analogous
#4A4B17 #304B17 #174B18
triadic
#304B17 #17304B #4B1730
tetradic
#304B17 #174A4B #32174B #4B1817
square
#304B17 #174A4B #32174B #4B1817
split-complementary
#304B17 #18174B #4B174A
monochromatic
#0F1707 #121C09 #304B17 #4E7A25 #6CA934

Accessibility & contrast

On white

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

On black

2.14
#304B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##304B17#FFFFFF#000000##FFFFFF
##304B171.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4511
Deuteranopia (green-blind)
#4B431B
Tritanopia (blue-blind)
#314840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #304b17;
/* rgb */ color: rgb(48, 75, 23);
/* oklch */ color: oklch(37.8% 0.084 132.5);
Tailwind
colors: {
  custom: {
    50: '#6b7d57',
    500: '#304b17',
    950: '#000000',
  },
}
SCSS
$custom: #304b17;
$custom-light: #6b7d57;
$custom-dark: #000000;
JSON
{
  "hex": "#304b17",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 23
  },
  "hsl": {
    "h": 91.154,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.37843,
    "c": 0.08448,
    "h": 132.5
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#304B17
secondary
#603C82
accent
#4BDC97
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304B17

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

Preview Lab → · Contrast checker → · Palette generator →

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