#042807#042807

#042807 is a very dark, moderate green. Relative luminance 0.016; OKLCH L 24.3% C 0.070 H 144.5°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#042807
RGBrgb(4, 40, 7)
HSLhsl(125, 82%, 9%)
HSVhsv(125, 90%, 16%)
CMYKcmyk(90%, 0%, 82.5%, 84.3%)
CIE-LABlab(12.98, -21.23, 15.83)
CIE-LCHlch(12.98, 26.48, 143.28°)
OKLaboklab(24.28% -0.0574 0.0409)
OKLCHoklch(24.28% 0.07 144.5)
XYZxyz(0.8472, 1.5586, 0.4572)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042807 #280425
analogous
#132804 #042807 #042819
triadic
#042807 #070428 #280704
tetradic
#042807 #041328 #280425 #281904
square
#042807 #041328 #280425 #281904
split-complementary
#042807 #190428 #280413
monochromatic
#031C05 #031C05 #042807 #0A6011 #0F971A

Accessibility & contrast

On white

16.01
#042807 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#042807 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042807
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042807#FFFFFF#000000##FFFFFF
##0428071.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292304
Deuteranopia (green-blind)
#25200A
Tritanopia (blue-blind)
#002721
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #042807;
/* rgb */ color: rgb(4, 40, 7);
/* oklch */ color: oklch(24.3% 0.070 144.5);
Tailwind
colors: {
  custom: {
    50: '#49624a',
    500: '#042807',
    950: '#000000',
  },
}
SCSS
$custom: #042807;
$custom-light: #49624a;
$custom-dark: #000000;
JSON
{
  "hex": "#042807",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 7
  },
  "hsl": {
    "h": 125,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.24279,
    "c": 0.07047,
    "h": 144.5
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#042807
secondary
#6B1D64
accent
#30E7F8
background
#F4F5F4
surface
#E7EAE7
border
#C3C6C3
text
#010501
muted
#777977

Preview Lab

Preview with #042807

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

Preview Lab → · Contrast checker → · Palette generator →

#042807 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva