#042E07#042E07

#042E07 is a dark, moderate green. Relative luminance 0.020; OKLCH L 26.3% C 0.079 H 144.0°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#042E07
RGBrgb(4, 46, 7)
HSLhsl(124, 84%, 10%)
HSVhsv(124, 91%, 18%)
CMYKcmyk(91.3%, 0%, 84.8%, 82%)
CIE-LABlab(15.46, -23.71, 19.08)
CIE-LCHlch(15.46, 30.43, 141.18°)
OKLaboklab(26.34% -0.0641 0.0465)
OKLCHoklch(26.34% 0.079 144)
XYZxyz(1.0653, 1.9950, 0.5299)
Luminance0.0199 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E07 #2E042B
analogous
#162E04 #042E07 #042E1C
triadic
#042E07 #07042E #2E0704
tetradic
#042E07 #04162E #2E042B #2E1C04
square
#042E07 #04162E #2E042B #2E1C04
split-complementary
#042E07 #1C042E #2E0416
monochromatic
#021C04 #021C04 #042E07 #096610 #0E9F18

Accessibility & contrast

On white

15.01
#042E07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#042E07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042E07
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E07#FFFFFF#000000##FFFFFF
##042E071.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2903
Deuteranopia (green-blind)
#2A250B
Tritanopia (blue-blind)
#002C26
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042e07;
/* rgb */ color: rgb(4, 46, 7);
/* oklch */ color: oklch(26.3% 0.079 144.0);
Tailwind
colors: {
  custom: {
    50: '#4c674a',
    500: '#042e07',
    950: '#000000',
  },
}
SCSS
$custom: #042e07;
$custom-light: #4c674a;
$custom-dark: #000000;
JSON
{
  "hex": "#042e07",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 7
  },
  "hsl": {
    "h": 124.286,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.26343,
    "c": 0.07921,
    "h": 144
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#042E07
secondary
#711D6B
accent
#2EECFA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042E07

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

Preview Lab → · Contrast checker → · Palette generator →

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