#042A01#042A01

#042A01 is a very dark, moderate green. Relative luminance 0.017; OKLCH L 24.9% C 0.080 H 141.4°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#042A01
RGBrgb(4, 42, 1)
HSLhsl(116, 95%, 8%)
HSVhsv(116, 98%, 16%)
CMYKcmyk(90.5%, 0%, 97.6%, 83.5%)
CIE-LABlab(13.73, -23.02, 19.28)
CIE-LCHlch(13.73, 30.03, 140.06°)
OKLaboklab(24.88% -0.0628 0.0502)
OKLCHoklch(24.88% 0.08 141.4)
XYZxyz(0.8835, 1.6838, 0.3072)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A01 #27012A
analogous
#182A01 #042A01 #012A12
triadic
#042A01 #01042A #2A0104
tetradic
#042A01 #01182A #27012A #2A1201
square
#042A01 #01182A #27012A #2A1201
split-complementary
#042A01 #12012A #2A0118
monochromatic
#031E01 #031E01 #042A01 #0A6602 #0FA204

Accessibility & contrast

On white

15.71
#042A01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#042A01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A01
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A01#FFFFFF#000000##FFFFFF
##042A011.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2500
Deuteranopia (green-blind)
#272204
Tritanopia (blue-blind)
#002822
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #042a01;
/* rgb */ color: rgb(4, 42, 1);
/* oklch */ color: oklch(24.9% 0.080 141.4);
Tailwind
colors: {
  custom: {
    50: '#4a6447',
    500: '#042a01',
    950: '#000000',
  },
}
SCSS
$custom: #042a01;
$custom-light: #4a6447;
$custom-dark: #000000;
JSON
{
  "hex": "#042a01",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 1
  },
  "hsl": {
    "h": 115.61,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.24882,
    "c": 0.08042,
    "h": 141.4
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#042A01
secondary
#6A1670
accent
#29FFEF
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010500
muted
#777A77

Preview Lab

Preview with #042A01

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

Preview Lab → · Contrast checker → · Palette generator →

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