#04470C#04470C

#04470C is a dark, moderate green. Relative luminance 0.046; OKLCH L 34.7% C 0.109 H 144.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#04470C
RGBrgb(4, 71, 12)
HSLhsl(127, 89%, 15%)
HSVhsv(127, 94%, 28%)
CMYKcmyk(94.4%, 0%, 83.1%, 72.2%)
CIE-LABlab(25.44, -32.55, 28.17)
CIE-LCHlch(25.44, 43.05, 139.12°)
OKLaboklab(34.66% -0.0879 0.0637)
OKLCHoklch(34.66% 0.109 144.1)
XYZxyz(2.3695, 4.5585, 1.1028)
Luminance0.0456 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04470C #47043F
analogous
#1E4704 #04470C #04472E
triadic
#04470C #0C0447 #470C04
tetradic
#04470C #041E47 #47043F #472E04
square
#04470C #041E47 #47043F #472E04
split-complementary
#04470C #2E0447 #47041E
monochromatic
#021D05 #021D05 #04470C #078116 #0BBB20

Accessibility & contrast

On white

10.98
#04470C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#04470C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04470C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04470C#FFFFFF#000000##FFFFFF
##04470C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#493F03
Deuteranopia (green-blind)
#423A12
Tritanopia (blue-blind)
#00453C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #04470c;
/* rgb */ color: rgb(4, 71, 12);
/* oklch */ color: oklch(34.7% 0.109 144.1);
Tailwind
colors: {
  custom: {
    50: '#547b4f',
    500: '#04470c',
    950: '#000000',
  },
}
SCSS
$custom: #04470c;
$custom-light: #547b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#04470c",
  "rgb": {
    "r": 4,
    "g": 71,
    "b": 12
  },
  "hsl": {
    "h": 127.164,
    "s": 89.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34659,
    "c": 0.10855,
    "h": 144.1
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#04470C
secondary
#881F7B
accent
#29E5FF
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#030902
muted
#787B78

Preview Lab

Preview with #04470C

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

Preview Lab → · Contrast checker → · Palette generator →

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