#304104#304104

#304104 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.084 H 125.0°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#304104
RGBrgb(48, 65, 4)
HSLhsl(77, 88%, 14%)
HSVhsv(77, 94%, 25%)
CMYKcmyk(26.2%, 0%, 93.8%, 74.5%)
CIE-LABlab(25.01, -16.47, 31.64)
CIE-LCHlch(25.01, 35.67, 117.50°)
OKLaboklab(34.79% -0.0482 0.0688)
OKLCHoklch(34.79% 0.084 125)
XYZxyz(3.1312, 4.4177, 0.8026)
Luminance0.0442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304104 #150441
analogous
#413304 #304104 #114104
triadic
#304104 #043041 #410430
tetradic
#304104 #044133 #150441 #410411
square
#304104 #044133 #150441 #410411
split-complementary
#304104 #041141 #330441
monochromatic
#151D02 #151D02 #304104 #5B7B08 #85B40B

Accessibility & contrast

On white

11.15
#304104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#304104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304104
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304104#FFFFFF#000000##FFFFFF
##3041041.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#433B0A
Tritanopia (blue-blind)
#333D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #304104;
/* rgb */ color: rgb(48, 65, 4);
/* oklch */ color: oklch(34.8% 0.084 125.0);
Tailwind
colors: {
  custom: {
    50: '#6b754b',
    500: '#304104',
    950: '#000000',
  },
}
SCSS
$custom: #304104;
$custom-light: #6b754b;
$custom-dark: #000000;
JSON
{
  "hex": "#304104",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 4
  },
  "hsl": {
    "h": 76.721,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34794,
    "c": 0.08403,
    "h": 125
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#304104
secondary
#3A1F82
accent
#29FF65
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304104

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

Preview Lab → · Contrast checker → · Palette generator →

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