#304108#304108

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

Color values

HEX#304108
RGBrgb(48, 65, 8)
HSLhsl(78, 78%, 14%)
HSVhsv(78, 88%, 25%)
CMYKcmyk(26.2%, 0%, 87.7%, 74.5%)
CIE-LABlab(25.03, -16.21, 30.03)
CIE-LCHlch(25.03, 34.13, 118.36°)
OKLaboklab(34.83% -0.0471 0.0662)
OKLCHoklch(34.83% 0.081 125.4)
XYZxyz(3.1531, 4.4265, 0.9180)
Luminance0.0443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304108 #190841
analogous
#413608 #304108 #144108
triadic
#304108 #083041 #410830
tetradic
#304108 #084136 #190841 #410814
square
#304108 #084136 #190841 #410814
split-complementary
#304108 #081441 #360841
monochromatic
#141B03 #141B03 #304108 #58770F #80AE15

Accessibility & contrast

On white

11.14
#304108 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#304108 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304108
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304108#FFFFFF#000000##FFFFFF
##3041081.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304108;
/* rgb */ color: rgb(48, 65, 8);
/* oklch */ color: oklch(34.8% 0.081 125.4);
Tailwind
colors: {
  custom: {
    50: '#6b754d',
    500: '#304108',
    950: '#000000',
  },
}
SCSS
$custom: #304108;
$custom-light: #6b754d;
$custom-dark: #000000;
JSON
{
  "hex": "#304108",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 8
  },
  "hsl": {
    "h": 77.895,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.34825,
    "c": 0.08123,
    "h": 125.4
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#304108
secondary
#40257F
accent
#33F56D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304108

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

Preview Lab → · Contrast checker → · Palette generator →

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