#04380C#04380C

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

Color values

HEX#04380C
RGBrgb(4, 56, 12)
HSLhsl(129, 87%, 12%)
HSVhsv(129, 93%, 22%)
CMYKcmyk(92.9%, 0%, 78.6%, 78%)
CIE-LABlab(19.56, -27.01, 21.95)
CIE-LCHlch(19.56, 34.80, 140.90°)
OKLaboklab(29.77% -0.0728 0.0509)
OKLCHoklch(29.77% 0.089 145.1)
XYZxyz(1.5305, 2.8805, 0.8231)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04380C #380430
analogous
#163804 #04380C #043826
triadic
#04380C #0C0438 #380C04
tetradic
#04380C #041638 #380430 #382604
square
#04380C #041638 #380430 #382604
split-complementary
#04380C #260438 #380416
monochromatic
#021D06 #021D06 #04380C #087118 #0CAA24

Accessibility & contrast

On white

13.32
#04380C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04380C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04380C#FFFFFF#000000##FFFFFF
##04380C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393206
Deuteranopia (green-blind)
#332E10
Tritanopia (blue-blind)
#00362F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #04380c;
/* rgb */ color: rgb(4, 56, 12);
/* oklch */ color: oklch(29.8% 0.089 145.1);
Tailwind
colors: {
  custom: {
    50: '#4f6f4d',
    500: '#04380c',
    950: '#000000',
  },
}
SCSS
$custom: #04380c;
$custom-light: #4f6f4d;
$custom-dark: #000000;
JSON
{
  "hex": "#04380c",
  "rgb": {
    "r": 4,
    "g": 56,
    "b": 12
  },
  "hsl": {
    "h": 129.231,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.29766,
    "c": 0.08882,
    "h": 145.1
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#04380C
secondary
#7A1E6C
accent
#2BDDFD
background
#F4F6F4
surface
#E7ECE7
border
#C3C7C3
text
#020701
muted
#787A77

Preview Lab

Preview with #04380C

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

Preview Lab → · Contrast checker → · Palette generator →

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