#042A0A#042A0A

#042A0A is a dark, moderate green. Relative luminance 0.017; OKLCH L 25.0% C 0.070 H 145.9°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#042A0A
RGBrgb(4, 42, 10)
HSLhsl(129, 83%, 9%)
HSVhsv(129, 90%, 16%)
CMYKcmyk(90.5%, 0%, 76.2%, 83.5%)
CIE-LABlab(13.85, -21.60, 15.77)
CIE-LCHlch(13.85, 26.74, 143.87°)
OKLaboklab(25.01% -0.0582 0.0394)
OKLCHoklch(25.01% 0.07 145.9)
XYZxyz(0.9328, 1.7035, 0.5668)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A0A #2A0424
analogous
#112A04 #042A0A #042A1D
triadic
#042A0A #0A042A #2A0A04
tetradic
#042A0A #04112A #2A0424 #2A1D04
square
#042A0A #04112A #2A0424 #2A1D04
split-complementary
#042A0A #1D042A #2A0411
monochromatic
#031C07 #031C07 #042A0A #096217 #0F9A25

Accessibility & contrast

On white

15.66
#042A0A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#042A0A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A0A
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A0A#FFFFFF#000000##FFFFFF
##042A0A1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2507
Deuteranopia (green-blind)
#26220D
Tritanopia (blue-blind)
#002923
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #042a0a;
/* rgb */ color: rgb(4, 42, 10);
/* oklch */ color: oklch(25.0% 0.070 145.9);
Tailwind
colors: {
  custom: {
    50: '#4a644b',
    500: '#042a0a',
    950: '#000000',
  },
}
SCSS
$custom: #042a0a;
$custom-light: #4a644b;
$custom-dark: #000000;
JSON
{
  "hex": "#042a0a",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 10
  },
  "hsl": {
    "h": 129.474,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.25015,
    "c": 0.07033,
    "h": 145.9
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

primary
#042A0A
secondary
#6D1D60
accent
#2FD9F9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010501
muted
#777A77

Preview Lab

Preview with #042A0A

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

Preview Lab → · Contrast checker → · Palette generator →

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