#042102#042102

#042102 is a very dark, moderate green. Relative luminance 0.011; OKLCH L 21.7% C 0.067 H 141.5°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#042102
RGBrgb(4, 33, 2)
HSLhsl(116, 89%, 7%)
HSVhsv(116, 94%, 13%)
CMYKcmyk(87.9%, 0%, 93.9%, 87.1%)
CIE-LABlab(9.94, -18.05, 13.68)
CIE-LCHlch(9.94, 22.65, 142.84°)
OKLaboklab(21.73% -0.0522 0.0415)
OKLCHoklch(21.73% 0.067 141.5)
XYZxyz(0.6049, 1.1178, 0.2413)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042102 #1F0221
analogous
#142102 #042102 #022110
triadic
#042102 #020421 #210204
tetradic
#042102 #021421 #1F0221 #211002
square
#042102 #021421 #1F0221 #211002
split-complementary
#042102 #100221 #210214
monochromatic
#031D02 #031D02 #042102 #0B5B05 #129409

Accessibility & contrast

On white

17.16
#042102 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#042102 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042102
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042102#FFFFFF#000000##FFFFFF
##0421021.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221D00
Deuteranopia (green-blind)
#1F1A04
Tritanopia (blue-blind)
#01201B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #042102;
/* rgb */ color: rgb(4, 33, 2);
/* oklch */ color: oklch(21.7% 0.067 141.5);
Tailwind
colors: {
  custom: {
    50: '#475c47',
    500: '#042102',
    950: '#000000',
  },
}
SCSS
$custom: #042102;
$custom-light: #475c47;
$custom-dark: #000000;
JSON
{
  "hex": "#042102",
  "rgb": {
    "r": 4,
    "g": 33,
    "b": 2
  },
  "hsl": {
    "h": 116.129,
    "s": 88.571,
    "l": 6.863
  },
  "oklch": {
    "l": 0.21732,
    "c": 0.06672,
    "h": 141.5
  },
  "luminance": 0.01118
}

Semantic roles & 50–950 ramp

primary
#042102
secondary
#621867
accent
#29FFF1
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #042102

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

Preview Lab → · Contrast checker → · Palette generator →

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