#304308#304308

#304308 is a dark, moderate yellow-green. Relative luminance 0.047; OKLCH L 35.4% C 0.084 H 126.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#304308
RGBrgb(48, 67, 8)
HSLhsl(79, 79%, 15%)
HSVhsv(79, 88%, 26%)
CMYKcmyk(28.4%, 0%, 88.1%, 73.7%)
CIE-LABlab(25.74, -17.31, 30.70)
CIE-LCHlch(25.74, 35.24, 119.42°)
OKLaboklab(35.4% -0.0501 0.0676)
OKLCHoklch(35.4% 0.084 126.5)
XYZxyz(3.2699, 4.6602, 0.9569)
Luminance0.0466 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304308 #1B0843
analogous
#433908 #304308 #134308
triadic
#304308 #083043 #430830
tetradic
#304308 #084339 #1B0843 #430813
square
#304308 #084339 #1B0843 #430813
split-complementary
#304308 #081343 #390843
monochromatic
#141B03 #141B03 #304308 #577A0F #7EB015

Accessibility & contrast

On white

10.87
#304308 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#304308 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304308
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304308#FFFFFF#000000##FFFFFF
##3043081.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473E00
Deuteranopia (green-blind)
#443D0E
Tritanopia (blue-blind)
#323F38
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #304308;
/* rgb */ color: rgb(48, 67, 8);
/* oklch */ color: oklch(35.4% 0.084 126.5);
Tailwind
colors: {
  custom: {
    50: '#6b774d',
    500: '#304308',
    950: '#000000',
  },
}
SCSS
$custom: #304308;
$custom-light: #6b774d;
$custom-dark: #000000;
JSON
{
  "hex": "#304308",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 8
  },
  "hsl": {
    "h": 79.322,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.35401,
    "c": 0.08411,
    "h": 126.5
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#304308
secondary
#432581
accent
#33F571
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304308

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

Preview Lab → · Contrast checker → · Palette generator →

#304308 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva