#04340F#04340F

#04340F is a dark, moderate green. Relative luminance 0.025; OKLCH L 28.5% C 0.080 H 146.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#04340F
RGBrgb(4, 52, 15)
HSLhsl(134, 86%, 11%)
HSVhsv(134, 92%, 20%)
CMYKcmyk(92.3%, 0%, 71.2%, 79.6%)
CIE-LABlab(17.99, -25.00, 18.64)
CIE-LCHlch(17.99, 31.19, 143.30°)
OKLaboklab(28.48% -0.0672 0.0441)
OKLCHoklch(28.48% 0.08 146.8)
XYZxyz(1.3642, 2.5161, 0.8656)
Luminance0.0252 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04340F #340429
analogous
#113404 #04340F #043427
triadic
#04340F #0F0434 #340F04
tetradic
#04340F #041134 #340429 #342704
square
#04340F #041134 #340429 #342704
split-complementary
#04340F #270434 #340411
monochromatic
#021C08 #021C08 #04340F #086D1F #0DA630

Accessibility & contrast

On white

13.97
#04340F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#04340F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04340F
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04340F#FFFFFF#000000##FFFFFF
##04340F1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E0B
Deuteranopia (green-blind)
#2F2B12
Tritanopia (blue-blind)
#00332C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #04340f;
/* rgb */ color: rgb(4, 52, 15);
/* oklch */ color: oklch(28.5% 0.080 146.8);
Tailwind
colors: {
  custom: {
    50: '#4e6c4f',
    500: '#04340f',
    950: '#000000',
  },
}
SCSS
$custom: #04340f;
$custom-light: #4e6c4f;
$custom-dark: #000000;
JSON
{
  "hex": "#04340f",
  "rgb": {
    "r": 4,
    "g": 52,
    "b": 15
  },
  "hsl": {
    "h": 133.75,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.28475,
    "c": 0.08039,
    "h": 146.8
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#04340F
secondary
#761E62
accent
#2CCCFC
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020702
muted
#787A78

Preview Lab

Preview with #04340F

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

Preview Lab → · Contrast checker → · Palette generator →

#04340F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva