#04371B#04371B

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

Color values

HEX#04371B
RGBrgb(4, 55, 27)
HSLhsl(147, 86%, 12%)
HSVhsv(147, 93%, 22%)
CMYKcmyk(92.7%, 0%, 50.9%, 78.4%)
CIE-LABlab(19.38, -23.98, 13.06)
CIE-LCHlch(19.38, 27.31, 151.43°)
OKLaboklab(29.69% -0.0644 0.0323)
OKLCHoklch(29.69% 0.072 153.4)
XYZxyz(1.6139, 2.8371, 1.4993)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04371B #370420
analogous
#063704 #04371B #043735
triadic
#04371B #1B0437 #371B04
tetradic
#04371B #040637 #370420 #373504
square
#04371B #040637 #370420 #373504
split-complementary
#04371B #350437 #370406
monochromatic
#021D0E #021D0E #04371B #087037 #0CA953

Accessibility & contrast

On white

13.40
#04371B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04371B
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04371B#FFFFFF#000000##FFFFFF
##04371B1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373119
Deuteranopia (green-blind)
#312D1D
Tritanopia (blue-blind)
#003630
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #04371b;
/* rgb */ color: rgb(4, 55, 27);
/* oklch */ color: oklch(29.7% 0.072 153.4);
Tailwind
colors: {
  custom: {
    50: '#4e6e57',
    500: '#04371b',
    950: '#000000',
  },
}
SCSS
$custom: #04371b;
$custom-light: #4e6e57;
$custom-dark: #000000;
JSON
{
  "hex": "#04371b",
  "rgb": {
    "r": 4,
    "g": 55,
    "b": 27
  },
  "hsl": {
    "h": 147.059,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.29688,
    "c": 0.07206,
    "h": 153.4
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#04371B
secondary
#791E50
accent
#2B9EFD
background
#F4F6F5
surface
#E7ECE9
border
#C3C7C5
text
#020703
muted
#787A78

Preview Lab

Preview with #04371B

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

Preview Lab → · Contrast checker → · Palette generator →

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