#042C0D#042C0D

#042C0D is a dark, moderate green. Relative luminance 0.019; OKLCH L 25.7% C 0.070 H 147.2°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#042C0D
RGBrgb(4, 44, 13)
HSLhsl(134, 83%, 9%)
HSVhsv(134, 91%, 17%)
CMYKcmyk(90.9%, 0%, 70.5%, 82.7%)
CIE-LABlab(14.71, -21.98, 15.57)
CIE-LCHlch(14.71, 26.93, 144.69°)
OKLaboklab(25.75% -0.0591 0.0381)
OKLCHoklch(25.75% 0.07 147.2)
XYZxyz(1.0233, 1.8561, 0.6850)
Luminance0.0186 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C0D #2C0423
analogous
#0F2C04 #042C0D #042C21
triadic
#042C0D #0D042C #2C0D04
tetradic
#042C0D #040F2C #2C0423 #2C2104
square
#042C0D #040F2C #2C0423 #2C2104
split-complementary
#042C0D #21042C #2C040F
monochromatic
#031C08 #031C08 #042C0D #09641E #0E9C2E

Accessibility & contrast

On white

15.32
#042C0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042C0D
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C0D#FFFFFF#000000##FFFFFF
##042C0D1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042c0d;
/* rgb */ color: rgb(4, 44, 13);
/* oklch */ color: oklch(25.7% 0.070 147.2);
Tailwind
colors: {
  custom: {
    50: '#4b664d',
    500: '#042c0d',
    950: '#000000',
  },
}
SCSS
$custom: #042c0d;
$custom-light: #4b664d;
$custom-dark: #000000;
JSON
{
  "hex": "#042c0d",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 13
  },
  "hsl": {
    "h": 133.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.25746,
    "c": 0.07033,
    "h": 147.2
  },
  "luminance": 0.01856
}

Semantic roles & 50–950 ramp

primary
#042C0D
secondary
#6F1D5C
accent
#2ECCFA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042C0D

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

Preview Lab → · Contrast checker → · Palette generator →

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