#042C0B#042C0B

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

Color values

HEX#042C0B
RGBrgb(4, 44, 11)
HSLhsl(131, 83%, 9%)
HSVhsv(131, 91%, 17%)
CMYKcmyk(90.9%, 0%, 75%, 82.7%)
CIE-LABlab(14.69, -22.30, 16.44)
CIE-LCHlch(14.69, 27.71, 143.60°)
OKLaboklab(25.72% -0.0601 0.0404)
OKLCHoklch(25.72% 0.072 146.1)
XYZxyz(1.0111, 1.8512, 0.6206)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C0B #2C0425
analogous
#112C04 #042C0B #042C1F
triadic
#042C0B #0B042C #2C0B04
tetradic
#042C0B #04112C #2C0425 #2C1F04
square
#042C0B #04112C #2C0425 #2C1F04
split-complementary
#042C0B #1F042C #2C0411
monochromatic
#031C07 #031C07 #042C0B #096419 #0E9C27

Accessibility & contrast

On white

15.33
#042C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042C0B
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C0B#FFFFFF#000000##FFFFFF
##042C0B1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042c0b;
/* rgb */ color: rgb(4, 44, 11);
/* oklch */ color: oklch(25.7% 0.072 146.1);
Tailwind
colors: {
  custom: {
    50: '#4b664c',
    500: '#042c0b',
    950: '#000000',
  },
}
SCSS
$custom: #042c0b;
$custom-light: #4b664c;
$custom-dark: #000000;
JSON
{
  "hex": "#042c0b",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 11
  },
  "hsl": {
    "h": 130.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.25715,
    "c": 0.07239,
    "h": 146.1
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#042C0B
secondary
#6F1D60
accent
#2ED6FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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