#042C15#042C15

#042C15 is a dark, moderate green. Relative luminance 0.019; OKLCH L 25.9% C 0.061 H 153.4°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#042C15
RGBrgb(4, 44, 21)
HSLhsl(146, 83%, 9%)
HSVhsv(146, 91%, 17%)
CMYKcmyk(90.9%, 0%, 52.3%, 82.7%)
CIE-LABlab(14.85, -20.36, 11.10)
CIE-LCHlch(14.85, 23.19, 151.41°)
OKLaboklab(25.91% -0.0548 0.0275)
OKLCHoklch(25.91% 0.061 153.4)
XYZxyz(1.0860, 1.8812, 1.0152)
Luminance0.0188 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C15 #2C041B
analogous
#072C04 #042C15 #042C29
triadic
#042C15 #15042C #2C1504
tetradic
#042C15 #04072C #2C041B #2C2904
square
#042C15 #04072C #2C041B #2C2904
split-complementary
#042C15 #29042C #2C0407
monochromatic
#031C0D #031C0D #042C15 #096430 #0E9C4B

Accessibility & contrast

On white

15.26
#042C15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#042C15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042C15
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C15#FFFFFF#000000##FFFFFF
##042C151.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2713
Deuteranopia (green-blind)
#272417
Tritanopia (blue-blind)
#002B26
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042c15;
/* rgb */ color: rgb(4, 44, 21);
/* oklch */ color: oklch(25.9% 0.061 153.4);
Tailwind
colors: {
  custom: {
    50: '#4b6552',
    500: '#042c15',
    950: '#000000',
  },
}
SCSS
$custom: #042c15;
$custom-light: #4b6552;
$custom-dark: #000000;
JSON
{
  "hex": "#042c15",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 21
  },
  "hsl": {
    "h": 145.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.25905,
    "c": 0.06129,
    "h": 153.4
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#042C15
secondary
#6F1D4C
accent
#2EA3FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042C15

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

Preview Lab → · Contrast checker → · Palette generator →

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