#042C07#042C07

#042C07 is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.7% C 0.076 H 144.2°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#042C07
RGBrgb(4, 44, 7)
HSLhsl(125, 83%, 9%)
HSVhsv(125, 91%, 17%)
CMYKcmyk(90.9%, 0%, 84.1%, 82.7%)
CIE-LABlab(14.64, -22.90, 18.02)
CIE-LCHlch(14.64, 29.14, 141.80°)
OKLaboklab(25.66% -0.0619 0.0447)
OKLCHoklch(25.66% 0.076 144.2)
XYZxyz(0.9890, 1.8424, 0.5045)
Luminance0.0184 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C07 #2C0429
analogous
#152C04 #042C07 #042C1B
triadic
#042C07 #07042C #2C0704
tetradic
#042C07 #04152C #2C0429 #2C1B04
square
#042C07 #04152C #2C0429 #2C1B04
split-complementary
#042C07 #1B042C #2C0415
monochromatic
#031C04 #031C04 #042C07 #096410 #0E9C19

Accessibility & contrast

On white

15.34
#042C07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042C07
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C07#FFFFFF#000000##FFFFFF
##042C071.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2703
Deuteranopia (green-blind)
#28240A
Tritanopia (blue-blind)
#002B24
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042c07;
/* rgb */ color: rgb(4, 44, 7);
/* oklch */ color: oklch(25.7% 0.076 144.2);
Tailwind
colors: {
  custom: {
    50: '#4b664a',
    500: '#042c07',
    950: '#000000',
  },
}
SCSS
$custom: #042c07;
$custom-light: #4b664a;
$custom-dark: #000000;
JSON
{
  "hex": "#042c07",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 7
  },
  "hsl": {
    "h": 124.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.25658,
    "c": 0.07635,
    "h": 144.2
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#042C07
secondary
#6F1D69
accent
#2EEAFA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042C07

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

Preview Lab → · Contrast checker → · Palette generator →

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