#304F2D#304F2D

#304F2D is a dark, moderate green. Relative luminance 0.064; OKLCH L 39.3% C 0.067 H 142.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#304F2D
RGBrgb(48, 79, 45)
HSLhsl(115, 27%, 24%)
HSVhsv(115, 43%, 31%)
CMYKcmyk(39.2%, 0%, 43%, 69%)
CIE-LABlab(30.42, -19.37, 16.55)
CIE-LCHlch(30.42, 25.48, 139.49°)
OKLaboklab(39.35% -0.0528 0.041)
OKLCHoklch(39.35% 0.067 142.2)
XYZxyz(4.4884, 6.4096, 3.4828)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F2D #4C2D4F
analogous
#414F2D #304F2D #2D4F3B
triadic
#304F2D #2D304F #4F2D30
tetradic
#304F2D #2D414F #4C2D4F #4F3B2D
square
#304F2D #2D414F #4C2D4F #4F3B2D
split-complementary
#304F2D #3B2D4F #4F2D41
monochromatic
#0C130B #182817 #304F2D #487643 #5F9D59

Accessibility & contrast

On white

9.20
#304F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#304F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F2D
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F2D#FFFFFF#000000##FFFFFF
##304F2D1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51492B
Deuteranopia (green-blind)
#4C462F
Tritanopia (blue-blind)
#2D4D47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304f2d;
/* rgb */ color: rgb(48, 79, 45);
/* oklch */ color: oklch(39.3% 0.067 142.2);
Tailwind
colors: {
  custom: {
    50: '#6a8066',
    500: '#304f2d',
    950: '#000000',
  },
}
SCSS
$custom: #304f2d;
$custom-light: #6a8066;
$custom-dark: #000000;
JSON
{
  "hex": "#304f2d",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 45
  },
  "hsl": {
    "h": 114.706,
    "s": 27.419,
    "l": 24.314
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.06686,
    "h": 142.2
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#304F2D
secondary
#7D5781
accent
#64C4BB
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#060A06
muted
#7A7C7A

Preview Lab

Preview with #304F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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