#304828#304828

#304828 is a dark, moderate green. Relative luminance 0.054; OKLCH L 37.3% C 0.060 H 138.2°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#304828
RGBrgb(48, 72, 40)
HSLhsl(105, 29%, 22%)
HSVhsv(105, 44%, 28%)
CMYKcmyk(33.3%, 0%, 44.4%, 71.8%)
CIE-LABlab(27.89, -16.44, 16.32)
CIE-LCHlch(27.89, 23.16, 135.21°)
OKLaboklab(37.26% -0.0449 0.0402)
OKLCHoklch(37.26% 0.06 138.2)
XYZxyz(3.9192, 5.4162, 2.8460)
Luminance0.0542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304828 #402848
analogous
#404828 #304828 #284830
triadic
#304828 #283048 #482830
tetradic
#304828 #284048 #402848 #483028
square
#304828 #284048 #402848 #483028
split-complementary
#304828 #302848 #482840
monochromatic
#0D140B #162112 #304828 #4A6F3E #649754

Accessibility & contrast

On white

10.08
#304828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#304828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304828
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304828#FFFFFF#000000##FFFFFF
##3048281.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4326
Deuteranopia (green-blind)
#46412A
Tritanopia (blue-blind)
#2F4640
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #304828;
/* rgb */ color: rgb(48, 72, 40);
/* oklch */ color: oklch(37.3% 0.060 138.2);
Tailwind
colors: {
  custom: {
    50: '#697b62',
    500: '#304828',
    950: '#000000',
  },
}
SCSS
$custom: #304828;
$custom-light: #697b62;
$custom-dark: #000000;
JSON
{
  "hex": "#304828",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 40
  },
  "hsl": {
    "h": 105,
    "s": 28.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.37263,
    "c": 0.06032,
    "h": 138.2
  },
  "luminance": 0.05416
}

Semantic roles & 50–950 ramp

primary
#304828
secondary
#70527A
accent
#63C5AC
background
#F6F7F5
surface
#EBEDEA
border
#C6C8C6
text
#060905
muted
#7A7B79

Preview Lab

Preview with #304828

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

Preview Lab → · Contrast checker → · Palette generator →

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