#042B04#042B04

#042B04 is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.3% C 0.078 H 142.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#042B04
RGBrgb(4, 43, 4)
HSLhsl(120, 83%, 9%)
HSVhsv(120, 91%, 17%)
CMYKcmyk(90.7%, 0%, 90.7%, 83.1%)
CIE-LABlab(14.19, -22.95, 18.66)
CIE-LCHlch(14.19, 29.58, 140.89°)
OKLaboklab(25.27% -0.0623 0.0472)
OKLCHoklch(25.27% 0.078 142.8)
XYZxyz(0.9358, 1.7622, 0.4057)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B04 #2B042B
analogous
#182B04 #042B04 #042B18
triadic
#042B04 #04042B #2B0404
tetradic
#042B04 #04182B #2B042B #2B1804
square
#042B04 #04182B #2B042B #2B1804
split-complementary
#042B04 #18042B #2B0418
monochromatic
#031C03 #031C03 #042B04 #096309 #0E9B0E

Accessibility & contrast

On white

15.53
#042B04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#042B04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B04
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B04#FFFFFF#000000##FFFFFF
##042B041.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#282307
Tritanopia (blue-blind)
#002923
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042b04;
/* rgb */ color: rgb(4, 43, 4);
/* oklch */ color: oklch(25.3% 0.078 142.8);
Tailwind
colors: {
  custom: {
    50: '#4a6548',
    500: '#042b04',
    950: '#000000',
  },
}
SCSS
$custom: #042b04;
$custom-light: #4a6548;
$custom-dark: #000000;
JSON
{
  "hex": "#042b04",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 4
  },
  "hsl": {
    "h": 120,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25272,
    "c": 0.07818,
    "h": 142.8
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#042B04
secondary
#6E1D6E
accent
#2EF9F9
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010500
muted
#777A77

Preview Lab

Preview with #042B04

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

Preview Lab → · Contrast checker → · Palette generator →

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