#042A03#042A03

#042A03 is a very dark, moderate green. Relative luminance 0.017; OKLCH L 24.9% C 0.078 H 142.3°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#042A03
RGBrgb(4, 42, 3)
HSLhsl(118, 87%, 9%)
HSVhsv(118, 93%, 16%)
CMYKcmyk(90.5%, 0%, 92.9%, 83.5%)
CIE-LABlab(13.76, -22.71, 18.50)
CIE-LCHlch(13.76, 29.29, 140.82°)
OKLaboklab(24.91% -0.0617 0.0476)
OKLCHoklch(24.91% 0.078 142.3)
XYZxyz(0.8944, 1.6882, 0.3648)
Luminance0.0169 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A03 #29032A
analogous
#182A03 #042A03 #032A16
triadic
#042A03 #03042A #2A0304
tetradic
#042A03 #03182A #29032A #2A1603
square
#042A03 #03182A #29032A #2A1603
split-complementary
#042A03 #16032A #2A0318
monochromatic
#031D02 #031D02 #042A03 #096307 #0F9C0B

Accessibility & contrast

On white

15.70
#042A03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042A03
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A03#FFFFFF#000000##FFFFFF
##042A031.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2500
Deuteranopia (green-blind)
#272206
Tritanopia (blue-blind)
#002822
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #042a03;
/* rgb */ color: rgb(4, 42, 3);
/* oklch */ color: oklch(24.9% 0.078 142.3);
Tailwind
colors: {
  custom: {
    50: '#4a6448',
    500: '#042a03',
    950: '#000000',
  },
}
SCSS
$custom: #042a03;
$custom-light: #4a6448;
$custom-dark: #000000;
JSON
{
  "hex": "#042a03",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 3
  },
  "hsl": {
    "h": 118.462,
    "s": 86.667,
    "l": 8.824
  },
  "oklch": {
    "l": 0.24911,
    "c": 0.07797,
    "h": 142.3
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#042A03
secondary
#6C1B6E
accent
#2BFDF7
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010500
muted
#777A77

Preview Lab

Preview with #042A03

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

Preview Lab → · Contrast checker → · Palette generator →

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