#04370C#04370C

#04370C is a dark, moderate green. Relative luminance 0.028; OKLCH L 29.4% C 0.087 H 145.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#04370C
RGBrgb(4, 55, 12)
HSLhsl(129, 86%, 12%)
HSVhsv(129, 93%, 22%)
CMYKcmyk(92.7%, 0%, 78.2%, 78.4%)
CIE-LABlab(19.16, -26.62, 21.49)
CIE-LCHlch(19.16, 34.21, 141.09°)
OKLaboklab(29.43% -0.0718 0.05)
OKLCHoklch(29.43% 0.087 145.2)
XYZxyz(1.4825, 2.7846, 0.8071)
Luminance0.0278 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04370C #37042F
analogous
#163704 #04370C #043726
triadic
#04370C #0C0437 #370C04
tetradic
#04370C #041637 #37042F #372604
square
#04370C #041637 #37042F #372604
split-complementary
#04370C #260437 #370416
monochromatic
#021D06 #021D06 #04370C #087018 #0CA925

Accessibility & contrast

On white

13.49
#04370C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#04370C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04370C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04370C#FFFFFF#000000##FFFFFF
##04370C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383107
Deuteranopia (green-blind)
#322D10
Tritanopia (blue-blind)
#00352E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #04370c;
/* rgb */ color: rgb(4, 55, 12);
/* oklch */ color: oklch(29.4% 0.087 145.2);
Tailwind
colors: {
  custom: {
    50: '#4f6e4d',
    500: '#04370c',
    950: '#000000',
  },
}
SCSS
$custom: #04370c;
$custom-light: #4f6e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#04370c",
  "rgb": {
    "r": 4,
    "g": 55,
    "b": 12
  },
  "hsl": {
    "h": 129.412,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.29434,
    "c": 0.08744,
    "h": 145.2
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#04370C
secondary
#791E6B
accent
#2BDCFD
background
#F4F6F4
surface
#E7ECE7
border
#C3C7C3
text
#020701
muted
#787A77

Preview Lab

Preview with #04370C

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

Preview Lab → · Contrast checker → · Palette generator →

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