#042B0C#042B0C

#042B0C is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.4% C 0.070 H 146.8°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#042B0C
RGBrgb(4, 43, 12)
HSLhsl(132, 83%, 9%)
HSVhsv(132, 91%, 17%)
CMYKcmyk(90.7%, 0%, 72.1%, 83.1%)
CIE-LABlab(14.29, -21.72, 15.48)
CIE-LCHlch(14.29, 26.67, 144.51°)
OKLaboklab(25.39% -0.0584 0.0382)
OKLCHoklch(25.39% 0.07 146.8)
XYZxyz(0.9802, 1.7800, 0.6397)
Luminance0.0178 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B0C #2B0423
analogous
#102B04 #042B0C #042B20
triadic
#042B0C #0C042B #2B0C04
tetradic
#042B0C #04102B #2B0423 #2B2004
square
#042B0C #04102B #2B0423 #2B2004
split-complementary
#042B0C #20042B #2B0410
monochromatic
#031C08 #031C08 #042B0C #09631C #0E9B2B

Accessibility & contrast

On white

15.49
#042B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#042B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B0C
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B0C#FFFFFF#000000##FFFFFF
##042B0C1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2609
Deuteranopia (green-blind)
#27230F
Tritanopia (blue-blind)
#002A24
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042b0c;
/* rgb */ color: rgb(4, 43, 12);
/* oklch */ color: oklch(25.4% 0.070 146.8);
Tailwind
colors: {
  custom: {
    50: '#4b654c',
    500: '#042b0c',
    950: '#000000',
  },
}
SCSS
$custom: #042b0c;
$custom-light: #4b654c;
$custom-dark: #000000;
JSON
{
  "hex": "#042b0c",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 12
  },
  "hsl": {
    "h": 132.308,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25388,
    "c": 0.06983,
    "h": 146.8
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#042B0C
secondary
#6E1D5D
accent
#2ED0F9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010501
muted
#777A77

Preview Lab

Preview with #042B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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