#042C01#042C01

#042C01 is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.6% C 0.083 H 141.5°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#042C01
RGBrgb(4, 44, 1)
HSLhsl(116, 96%, 9%)
HSVhsv(116, 98%, 17%)
CMYKcmyk(90.9%, 0%, 97.7%, 82.7%)
CIE-LABlab(14.56, -23.81, 20.37)
CIE-LCHlch(14.56, 31.33, 139.45°)
OKLaboklab(25.57% -0.0649 0.0517)
OKLCHoklch(25.57% 0.083 141.5)
XYZxyz(0.9562, 1.8293, 0.3314)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C01 #29012C
analogous
#1A2C01 #042C01 #012C14
triadic
#042C01 #01042C #2C0104
tetradic
#042C01 #011A2C #29012C #2C1401
square
#042C01 #011A2C #29012C #2C1401
split-complementary
#042C01 #14012C #2C011A
monochromatic
#031E01 #031E01 #042C01 #096802 #0FA404

Accessibility & contrast

On white

15.38
#042C01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#042C01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042C01
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C01#FFFFFF#000000##FFFFFF
##042C011.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2700
Deuteranopia (green-blind)
#292404
Tritanopia (blue-blind)
#002A24
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042c01;
/* rgb */ color: rgb(4, 44, 1);
/* oklch */ color: oklch(25.6% 0.083 141.5);
Tailwind
colors: {
  custom: {
    50: '#4b6647',
    500: '#042c01',
    950: '#000000',
  },
}
SCSS
$custom: #042c01;
$custom-light: #4b6647;
$custom-dark: #000000;
JSON
{
  "hex": "#042c01",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 1
  },
  "hsl": {
    "h": 115.814,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.25574,
    "c": 0.083,
    "h": 141.5
  },
  "luminance": 0.01829
}

Semantic roles & 50–950 ramp

primary
#042C01
secondary
#6C1772
accent
#29FFF0
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010600
muted
#777A77

Preview Lab

Preview with #042C01

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

Preview Lab → · Contrast checker → · Palette generator →

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