#04340E#04340E

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

Color values

HEX#04340E
RGBrgb(4, 52, 14)
HSLhsl(133, 86%, 11%)
HSVhsv(133, 92%, 20%)
CMYKcmyk(92.3%, 0%, 73.1%, 79.6%)
CIE-LABlab(17.98, -25.16, 19.14)
CIE-LCHlch(17.98, 31.61, 142.73°)
OKLaboklab(28.46% -0.0677 0.0451)
OKLCHoklch(28.46% 0.081 146.3)
XYZxyz(1.3572, 2.5133, 0.8290)
Luminance0.0251 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04340E #34042A
analogous
#123404 #04340E #043426
triadic
#04340E #0E0434 #340E04
tetradic
#04340E #041234 #34042A #342604
square
#04340E #041234 #34042A #342604
split-complementary
#04340E #260434 #340412
monochromatic
#021C08 #021C08 #04340E #086D1D #0DA62D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##04340E#FFFFFF#000000##FFFFFF
##04340E1.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)
#352E0A
Deuteranopia (green-blind)
#302A11
Tritanopia (blue-blind)
#00332C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #04340e;
/* rgb */ color: rgb(4, 52, 14);
/* oklch */ color: oklch(28.5% 0.081 146.3);
Tailwind
colors: {
  custom: {
    50: '#4e6c4e',
    500: '#04340e',
    950: '#000000',
  },
}
SCSS
$custom: #04340e;
$custom-light: #4e6c4e;
$custom-dark: #000000;
JSON
{
  "hex": "#04340e",
  "rgb": {
    "r": 4,
    "g": 52,
    "b": 14
  },
  "hsl": {
    "h": 132.5,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.2846,
    "c": 0.08136,
    "h": 146.3
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#04340E
secondary
#761E64
accent
#2CD1FC
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020701
muted
#787A77

Preview Lab

Preview with #04340E

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

Preview Lab → · Contrast checker → · Palette generator →

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