#04380F#04380F

#04380F is a dark, moderate green. Relative luminance 0.029; OKLCH L 29.8% C 0.086 H 146.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#04380F
RGBrgb(4, 56, 15)
HSLhsl(133, 87%, 12%)
HSVhsv(133, 93%, 22%)
CMYKcmyk(92.9%, 0%, 73.2%, 78%)
CIE-LABlab(19.59, -26.61, 20.51)
CIE-LCHlch(19.59, 33.60, 142.38°)
OKLaboklab(29.8% -0.0716 0.048)
OKLCHoklch(29.8% 0.086 146.2)
XYZxyz(1.5503, 2.8885, 0.9277)
Luminance0.0289 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04380F #38042D
analogous
#133804 #04380F #043829
triadic
#04380F #0F0438 #380F04
tetradic
#04380F #041338 #38042D #382904
square
#04380F #041338 #38042D #382904
split-complementary
#04380F #290438 #380413
monochromatic
#021D08 #021D08 #04380F #08711E #0CAA2E

Accessibility & contrast

On white

13.31
#04380F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#04380F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04380F
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04380F#FFFFFF#000000##FFFFFF
##04380F1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39320A
Deuteranopia (green-blind)
#332E13
Tritanopia (blue-blind)
#00362F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #04380f;
/* rgb */ color: rgb(4, 56, 15);
/* oklch */ color: oklch(29.8% 0.086 146.2);
Tailwind
colors: {
  custom: {
    50: '#4f6f4f',
    500: '#04380f',
    950: '#000000',
  },
}
SCSS
$custom: #04380f;
$custom-light: #4f6f4f;
$custom-dark: #000000;
JSON
{
  "hex": "#04380f",
  "rgb": {
    "r": 4,
    "g": 56,
    "b": 15
  },
  "hsl": {
    "h": 132.692,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.29804,
    "c": 0.08618,
    "h": 146.2
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#04380F
secondary
#7A1E66
accent
#2BD0FD
background
#F4F6F4
surface
#E7ECE7
border
#C3C7C3
text
#020702
muted
#787A78

Preview Lab

Preview with #04380F

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

Preview Lab → · Contrast checker → · Palette generator →

#04380F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva