#04371C#04371C

#04371C is a dark, moderate green. Relative luminance 0.028; OKLCH L 29.7% C 0.071 H 154.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#04371C
RGBrgb(4, 55, 28)
HSLhsl(148, 86%, 12%)
HSVhsv(148, 93%, 22%)
CMYKcmyk(92.7%, 0%, 49.1%, 78.4%)
CIE-LABlab(19.40, -23.76, 12.44)
CIE-LCHlch(19.40, 26.82, 152.35°)
OKLaboklab(29.71% -0.0639 0.0309)
OKLCHoklch(29.71% 0.071 154.2)
XYZxyz(1.6257, 2.8418, 1.5612)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04371C #37041F
analogous
#063704 #04371C #043736
triadic
#04371C #1C0437 #371C04
tetradic
#04371C #040637 #37041F #373604
square
#04371C #040637 #37041F #373604
split-complementary
#04371C #360437 #370406
monochromatic
#021D0F #021D0F #04371C #087039 #0CA956

Accessibility & contrast

On white

13.39
#04371C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#04371C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04371C
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04371C#FFFFFF#000000##FFFFFF
##04371C1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321A
Deuteranopia (green-blind)
#312D1E
Tritanopia (blue-blind)
#003630
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #04371c;
/* rgb */ color: rgb(4, 55, 28);
/* oklch */ color: oklch(29.7% 0.071 154.2);
Tailwind
colors: {
  custom: {
    50: '#4e6e58',
    500: '#04371c',
    950: '#000000',
  },
}
SCSS
$custom: #04371c;
$custom-light: #4e6e58;
$custom-dark: #000000;
JSON
{
  "hex": "#04371c",
  "rgb": {
    "r": 4,
    "g": 55,
    "b": 28
  },
  "hsl": {
    "h": 148.235,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2971,
    "c": 0.07094,
    "h": 154.2
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#04371C
secondary
#791E4E
accent
#2B9AFD
background
#F4F6F5
surface
#E7ECE9
border
#C3C7C5
text
#020703
muted
#787A78

Preview Lab

Preview with #04371C

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

Preview Lab → · Contrast checker → · Palette generator →

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