#042C0C#042C0C

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

Color values

HEX#042C0C
RGBrgb(4, 44, 12)
HSLhsl(132, 83%, 9%)
HSVhsv(132, 91%, 17%)
CMYKcmyk(90.9%, 0%, 72.7%, 82.7%)
CIE-LABlab(14.70, -22.15, 16.02)
CIE-LCHlch(14.70, 27.33, 144.12°)
OKLaboklab(25.73% -0.0596 0.0393)
OKLCHoklch(25.73% 0.071 146.6)
XYZxyz(1.0170, 1.8536, 0.6519)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C0C #2C0424
analogous
#102C04 #042C0C #042C20
triadic
#042C0C #0C042C #2C0C04
tetradic
#042C0C #04102C #2C0424 #2C2004
square
#042C0C #04102C #2C0424 #2C2004
split-complementary
#042C0C #20042C #2C0410
monochromatic
#031C08 #031C08 #042C0C #09641B #0E9C2B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##042C0C#FFFFFF#000000##FFFFFF
##042C0C1.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)
#2D2709
Deuteranopia (green-blind)
#28240F
Tritanopia (blue-blind)
#002B25
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042c0c;
/* rgb */ color: rgb(4, 44, 12);
/* oklch */ color: oklch(25.7% 0.071 146.6);
Tailwind
colors: {
  custom: {
    50: '#4b664c',
    500: '#042c0c',
    950: '#000000',
  },
}
SCSS
$custom: #042c0c;
$custom-light: #4b664c;
$custom-dark: #000000;
JSON
{
  "hex": "#042c0c",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 12
  },
  "hsl": {
    "h": 132,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.2573,
    "c": 0.07138,
    "h": 146.6
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#042C0C
secondary
#6F1D5E
accent
#2ED1FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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