#042B02#042B02

#042B02 is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.2% C 0.081 H 141.9°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#042B02
RGBrgb(4, 43, 2)
HSLhsl(117, 91%, 9%)
HSVhsv(117, 95%, 17%)
CMYKcmyk(90.7%, 0%, 95.3%, 83.1%)
CIE-LABlab(14.16, -23.26, 19.44)
CIE-LCHlch(14.16, 30.31, 140.12°)
OKLaboklab(25.24% -0.0633 0.0497)
OKLCHoklch(25.24% 0.081 141.9)
XYZxyz(0.9248, 1.7578, 0.3480)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B02 #29022B
analogous
#192B02 #042B02 #022B15
triadic
#042B02 #02042B #2B0204
tetradic
#042B02 #02192B #29022B #2B1502
square
#042B02 #02192B #29022B #2B1502
split-complementary
#042B02 #15022B #2B0219
monochromatic
#031D01 #031D01 #042B02 #096505 #0FA007

Accessibility & contrast

On white

15.54
#042B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#042B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B02
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B02#FFFFFF#000000##FFFFFF
##042B021.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#282305
Tritanopia (blue-blind)
#002923
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042b02;
/* rgb */ color: rgb(4, 43, 2);
/* oklch */ color: oklch(25.2% 0.081 141.9);
Tailwind
colors: {
  custom: {
    50: '#4a6547',
    500: '#042b02',
    950: '#000000',
  },
}
SCSS
$custom: #042b02;
$custom-light: #4a6547;
$custom-dark: #000000;
JSON
{
  "hex": "#042b02",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 2
  },
  "hsl": {
    "h": 117.073,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.25243,
    "c": 0.0805,
    "h": 141.9
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#042B02
secondary
#6C1970
accent
#29FFF5
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010500
muted
#777A77

Preview Lab

Preview with #042B02

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

Preview Lab → · Contrast checker → · Palette generator →

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