#042702#042702

#042702 is a very dark, moderate green. Relative luminance 0.015; OKLCH L 23.9% C 0.075 H 141.8°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#042702
RGBrgb(4, 39, 2)
HSLhsl(117, 90%, 8%)
HSVhsv(117, 95%, 15%)
CMYKcmyk(89.7%, 0%, 94.9%, 84.7%)
CIE-LABlab(12.49, -21.61, 17.21)
CIE-LCHlch(12.49, 27.62, 141.46°)
OKLaboklab(23.85% -0.059 0.0465)
OKLCHoklch(23.85% 0.075 141.8)
XYZxyz(0.7865, 1.4811, 0.3019)
Luminance0.0148 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042702 #250227
analogous
#162702 #042702 #022712
triadic
#042702 #020427 #270204
tetradic
#042702 #021627 #250227 #271202
square
#042702 #021627 #250227 #271202
split-complementary
#042702 #120227 #270216
monochromatic
#031D01 #031D01 #042702 #0A6105 #109B08

Accessibility & contrast

On white

16.20
#042702 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#042702 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042702
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042702#FFFFFF#000000##FFFFFF
##0427021.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282200
Deuteranopia (green-blind)
#241F05
Tritanopia (blue-blind)
#002520
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #042702;
/* rgb */ color: rgb(4, 39, 2);
/* oklch */ color: oklch(23.9% 0.075 141.8);
Tailwind
colors: {
  custom: {
    50: '#496247',
    500: '#042702',
    950: '#000000',
  },
}
SCSS
$custom: #042702;
$custom-light: #496247;
$custom-dark: #000000;
JSON
{
  "hex": "#042702",
  "rgb": {
    "r": 4,
    "g": 39,
    "b": 2
  },
  "hsl": {
    "h": 116.757,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.23851,
    "c": 0.07513,
    "h": 141.8
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#042702
secondary
#68186C
accent
#29FFF3
background
#F4F5F4
surface
#E7EAE6
border
#C3C6C2
text
#010500
muted
#777977

Preview Lab

Preview with #042702

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

Preview Lab → · Contrast checker → · Palette generator →

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