#042302#042302

#042302 is a very dark, moderate green. Relative luminance 0.012; OKLCH L 22.4% C 0.070 H 141.6°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#042302
RGBrgb(4, 35, 2)
HSLhsl(116, 89%, 7%)
HSVhsv(116, 94%, 14%)
CMYKcmyk(88.6%, 0%, 94.3%, 86.3%)
CIE-LABlab(10.79, -19.40, 14.88)
CIE-LCHlch(10.79, 24.45, 142.51°)
OKLaboklab(22.44% -0.0545 0.0432)
OKLCHoklch(22.44% 0.07 141.6)
XYZxyz(0.6620, 1.2322, 0.2604)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042302 #210223
analogous
#152302 #042302 #022311
triadic
#042302 #020423 #230204
tetradic
#042302 #021523 #210223 #231102
square
#042302 #021523 #210223 #231102
split-complementary
#042302 #110223 #230215
monochromatic
#031D02 #031D02 #042302 #0B5D05 #119709

Accessibility & contrast

On white

16.85
#042302 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#042302 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042302
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042302#FFFFFF#000000##FFFFFF
##0423021.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#241F00
Deuteranopia (green-blind)
#201C04
Tritanopia (blue-blind)
#00221C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #042302;
/* rgb */ color: rgb(4, 35, 2);
/* oklch */ color: oklch(22.4% 0.070 141.6);
Tailwind
colors: {
  custom: {
    50: '#485e47',
    500: '#042302',
    950: '#000000',
  },
}
SCSS
$custom: #042302;
$custom-light: #485e47;
$custom-dark: #000000;
JSON
{
  "hex": "#042302",
  "rgb": {
    "r": 4,
    "g": 35,
    "b": 2
  },
  "hsl": {
    "h": 116.364,
    "s": 89.189,
    "l": 7.255
  },
  "oklch": {
    "l": 0.22443,
    "c": 0.06958,
    "h": 141.6
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#042302
secondary
#641869
accent
#29FFF2
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #042302

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

Preview Lab → · Contrast checker → · Palette generator →

#042302 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva