#304E2A#304E2A

#304E2A is a dark, moderate green. Relative luminance 0.062; OKLCH L 39.0% C 0.069 H 140.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#304E2A
RGBrgb(48, 78, 42)
HSLhsl(110, 30%, 24%)
HSVhsv(110, 46%, 31%)
CMYKcmyk(38.5%, 0%, 46.2%, 69.4%)
CIE-LABlab(30.02, -19.36, 17.85)
CIE-LCHlch(30.02, 26.33, 137.33°)
OKLaboklab(39% -0.0529 0.0439)
OKLCHoklch(39% 0.069 140.3)
XYZxyz(4.3611, 6.2441, 3.1655)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E2A #482A4E
analogous
#424E2A #304E2A #2A4E36
triadic
#304E2A #2A304E #4E2A30
tetradic
#304E2A #2A424E #482A4E #4E362A
square
#304E2A #2A424E #482A4E #4E362A
split-complementary
#304E2A #362A4E #4E2A42
monochromatic
#0C140B #182615 #304E2A #48763F #619E55

Accessibility & contrast

On white

9.34
#304E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#304E2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304E2A
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E2A#FFFFFF#000000##FFFFFF
##304E2A1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504827
Deuteranopia (green-blind)
#4B462C
Tritanopia (blue-blind)
#2E4C45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304e2a;
/* rgb */ color: rgb(48, 78, 42);
/* oklch */ color: oklch(39.0% 0.069 140.3);
Tailwind
colors: {
  custom: {
    50: '#6a8064',
    500: '#304e2a',
    950: '#000000',
  },
}
SCSS
$custom: #304e2a;
$custom-light: #6a8064;
$custom-dark: #000000;
JSON
{
  "hex": "#304e2a",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 42
  },
  "hsl": {
    "h": 110,
    "s": 30,
    "l": 23.529
  },
  "oklch": {
    "l": 0.39002,
    "c": 0.0687,
    "h": 140.3
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#304E2A
secondary
#795480
accent
#62C6B5
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#060A05
muted
#7A7C7A

Preview Lab

Preview with #304E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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