#04240F#04240F

#04240F is a very dark, muted green. Relative luminance 0.013; OKLCH L 23.0% C 0.055 H 151.4°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#04240F
RGBrgb(4, 36, 15)
HSLhsl(141, 80%, 8%)
HSVhsv(141, 89%, 14%)
CMYKcmyk(88.9%, 0%, 58.3%, 85.9%)
CIE-LABlab(11.43, -17.84, 10.17)
CIE-LCHlch(11.43, 20.53, 150.31°)
OKLaboklab(23.04% -0.0483 0.0263)
OKLCHoklch(23.04% 0.055 151.4)
XYZxyz(0.7671, 1.3220, 0.6666)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04240F #240419
analogous
#092404 #04240F #04241F
triadic
#04240F #0F0424 #240F04
tetradic
#04240F #040924 #240419 #241F04
square
#04240F #040924 #240419 #241F04
split-complementary
#04240F #1F0424 #240409
monochromatic
#031C0B #031C0B #04240F #0A5B26 #10923D

Accessibility & contrast

On white

16.61
#04240F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#04240F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04240F
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04240F#FFFFFF#000000##FFFFFF
##04240F1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24200D
Deuteranopia (green-blind)
#201D10
Tritanopia (blue-blind)
#00231F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #04240f;
/* rgb */ color: rgb(4, 36, 15);
/* oklch */ color: oklch(23.0% 0.055 151.4);
Tailwind
colors: {
  custom: {
    50: '#485f4e',
    500: '#04240f',
    950: '#000000',
  },
}
SCSS
$custom: #04240f;
$custom-light: #485f4e;
$custom-dark: #000000;
JSON
{
  "hex": "#04240f",
  "rgb": {
    "r": 4,
    "g": 36,
    "b": 15
  },
  "hsl": {
    "h": 140.625,
    "s": 80,
    "l": 7.843
  },
  "oklch": {
    "l": 0.23038,
    "c": 0.05497,
    "h": 151.4
  },
  "luminance": 0.01322
}

Semantic roles & 50–950 ramp

primary
#04240F
secondary
#671D4D
accent
#31B3F6
background
#F4F5F4
surface
#E7E9E7
border
#C3C5C3
text
#010401
muted
#777977

Preview Lab

Preview with #04240F

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

Preview Lab → · Contrast checker → · Palette generator →

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