#042C09#042C09

#042C09 is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.7% C 0.074 H 145.1°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#042C09
RGBrgb(4, 44, 9)
HSLhsl(128, 83%, 9%)
HSVhsv(128, 91%, 17%)
CMYKcmyk(90.9%, 0%, 79.5%, 82.7%)
CIE-LABlab(14.66, -22.60, 17.24)
CIE-LCHlch(14.66, 28.42, 142.67°)
OKLaboklab(25.69% -0.061 0.0425)
OKLCHoklch(25.69% 0.074 145.1)
XYZxyz(1.0000, 1.8468, 0.5622)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C09 #2C0427
analogous
#132C04 #042C09 #042C1D
triadic
#042C09 #09042C #2C0904
tetradic
#042C09 #04132C #2C0427 #2C1D04
square
#042C09 #04132C #2C0427 #2C1D04
split-complementary
#042C09 #1D042C #2C0413
monochromatic
#031C06 #031C06 #042C09 #096414 #0E9C20

Accessibility & contrast

On white

15.34
#042C09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#042C09 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042C09
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C09#FFFFFF#000000##FFFFFF
##042C091.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2705
Deuteranopia (green-blind)
#28240C
Tritanopia (blue-blind)
#002B25
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042c09;
/* rgb */ color: rgb(4, 44, 9);
/* oklch */ color: oklch(25.7% 0.074 145.1);
Tailwind
colors: {
  custom: {
    50: '#4b664b',
    500: '#042c09',
    950: '#000000',
  },
}
SCSS
$custom: #042c09;
$custom-light: #4b664b;
$custom-dark: #000000;
JSON
{
  "hex": "#042c09",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 9
  },
  "hsl": {
    "h": 127.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.25686,
    "c": 0.07433,
    "h": 145.1
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#042C09
secondary
#6F1D64
accent
#2EE0FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042C09

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

Preview Lab → · Contrast checker → · Palette generator →

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