#042B15#042B15

#042B15 is a dark, muted green. Relative luminance 0.018; OKLCH L 25.6% C 0.060 H 153.9°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#042B15
RGBrgb(4, 43, 21)
HSLhsl(146, 83%, 9%)
HSVhsv(146, 91%, 17%)
CMYKcmyk(90.7%, 0%, 51.2%, 83.1%)
CIE-LABlab(14.44, -19.89, 10.56)
CIE-LCHlch(14.44, 22.52, 152.03°)
OKLaboklab(25.57% -0.0536 0.0262)
OKLCHoklch(25.57% 0.06 153.9)
XYZxyz(1.0492, 1.8076, 1.0029)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B15 #2B041A
analogous
#072B04 #042B15 #042B29
triadic
#042B15 #15042B #2B1504
tetradic
#042B15 #04072B #2B041A #2B2904
square
#042B15 #04072B #2B041A #2B2904
split-complementary
#042B15 #29042B #2B0407
monochromatic
#031C0E #031C0E #042B15 #096330 #0E9B4C

Accessibility & contrast

On white

15.42
#042B15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042B15
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B15#FFFFFF#000000##FFFFFF
##042B151.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2713
Deuteranopia (green-blind)
#262316
Tritanopia (blue-blind)
#002A26
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042b15;
/* rgb */ color: rgb(4, 43, 21);
/* oklch */ color: oklch(25.6% 0.060 153.9);
Tailwind
colors: {
  custom: {
    50: '#4a6552',
    500: '#042b15',
    950: '#000000',
  },
}
SCSS
$custom: #042b15;
$custom-light: #4a6552;
$custom-dark: #000000;
JSON
{
  "hex": "#042b15",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 21
  },
  "hsl": {
    "h": 146.154,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25568,
    "c": 0.05963,
    "h": 153.9
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#042B15
secondary
#6E1D4B
accent
#2EA1F9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010502
muted
#777A78

Preview Lab

Preview with #042B15

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

Preview Lab → · Contrast checker → · Palette generator →

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