#04340C#04340C

#04340C is a dark, moderate green. Relative luminance 0.025; OKLCH L 28.4% C 0.083 H 145.5°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#04340C
RGBrgb(4, 52, 12)
HSLhsl(130, 86%, 11%)
HSVhsv(130, 92%, 20%)
CMYKcmyk(92.3%, 0%, 76.9%, 79.6%)
CIE-LABlab(17.96, -25.44, 20.07)
CIE-LCHlch(17.96, 32.41, 141.73°)
OKLaboklab(28.43% -0.0685 0.0472)
OKLCHoklch(28.43% 0.083 145.5)
XYZxyz(1.3443, 2.5082, 0.7610)
Luminance0.0251 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04340C #34042C
analogous
#143404 #04340C #043424
triadic
#04340C #0C0434 #340C04
tetradic
#04340C #041434 #34042C #342404
square
#04340C #041434 #34042C #342404
split-complementary
#04340C #240434 #340414
monochromatic
#021C07 #021C07 #04340C #086D19 #0DA626

Accessibility & contrast

On white

13.99
#04340C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04340C
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04340C#FFFFFF#000000##FFFFFF
##04340C1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E07
Deuteranopia (green-blind)
#302A10
Tritanopia (blue-blind)
#00322C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #04340c;
/* rgb */ color: rgb(4, 52, 12);
/* oklch */ color: oklch(28.4% 0.083 145.5);
Tailwind
colors: {
  custom: {
    50: '#4e6c4d',
    500: '#04340c',
    950: '#000000',
  },
}
SCSS
$custom: #04340c;
$custom-light: #4e6c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#04340c",
  "rgb": {
    "r": 4,
    "g": 52,
    "b": 12
  },
  "hsl": {
    "h": 130,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.28433,
    "c": 0.08321,
    "h": 145.5
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#04340C
secondary
#761E67
accent
#2CD9FC
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020701
muted
#787A77

Preview Lab

Preview with #04340C

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

Preview Lab → · Contrast checker → · Palette generator →

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