#042D07#042D07

#042D07 is a dark, moderate green. Relative luminance 0.019; OKLCH L 26.0% C 0.078 H 144.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#042D07
RGBrgb(4, 45, 7)
HSLhsl(124, 84%, 10%)
HSVhsv(124, 91%, 18%)
CMYKcmyk(91.1%, 0%, 84.4%, 82.4%)
CIE-LABlab(15.05, -23.31, 18.55)
CIE-LCHlch(15.05, 29.79, 141.48°)
OKLaboklab(26% -0.063 0.0456)
OKLCHoklch(26% 0.078 144.1)
XYZxyz(1.0267, 1.9178, 0.5170)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D07 #2D042A
analogous
#162D04 #042D07 #042D1C
triadic
#042D07 #07042D #2D0704
tetradic
#042D07 #04162D #2D042A #2D1C04
square
#042D07 #04162D #2D042A #2D1C04
split-complementary
#042D07 #1C042D #2D0416
monochromatic
#021C04 #021C04 #042D07 #096510 #0E9D18

Accessibility & contrast

On white

15.18
#042D07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#042D07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042D07
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D07#FFFFFF#000000##FFFFFF
##042D071.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2803
Deuteranopia (green-blind)
#29250A
Tritanopia (blue-blind)
#002B25
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042d07;
/* rgb */ color: rgb(4, 45, 7);
/* oklch */ color: oklch(26.0% 0.078 144.1);
Tailwind
colors: {
  custom: {
    50: '#4b664a',
    500: '#042d07',
    950: '#000000',
  },
}
SCSS
$custom: #042d07;
$custom-light: #4b664a;
$custom-dark: #000000;
JSON
{
  "hex": "#042d07",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 7
  },
  "hsl": {
    "h": 124.39,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26001,
    "c": 0.07779,
    "h": 144.1
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#042D07
secondary
#701D6A
accent
#2EEBFA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042D07

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

Preview Lab → · Contrast checker → · Palette generator →

#042D07 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva