#042B07#042B07

#042B07 is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.3% C 0.075 H 144.3°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#042B07
RGBrgb(4, 43, 7)
HSLhsl(125, 83%, 9%)
HSVhsv(125, 91%, 17%)
CMYKcmyk(90.7%, 0%, 83.7%, 83.1%)
CIE-LABlab(14.22, -22.49, 17.48)
CIE-LCHlch(14.22, 28.49, 142.14°)
OKLaboklab(25.32% -0.0608 0.0438)
OKLCHoklch(25.32% 0.075 144.3)
XYZxyz(0.9522, 1.7688, 0.4922)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B07 #2B0428
analogous
#152B04 #042B07 #042B1B
triadic
#042B07 #07042B #2B0704
tetradic
#042B07 #04152B #2B0428 #2B1B04
square
#042B07 #04152B #2B0428 #2B1B04
split-complementary
#042B07 #1B042B #2B0415
monochromatic
#031C05 #031C05 #042B07 #096310 #0E9B19

Accessibility & contrast

On white

15.51
#042B07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#042B07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B07
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B07#FFFFFF#000000##FFFFFF
##042B071.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2604
Deuteranopia (green-blind)
#28230A
Tritanopia (blue-blind)
#002A24
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042b07;
/* rgb */ color: rgb(4, 43, 7);
/* oklch */ color: oklch(25.3% 0.075 144.3);
Tailwind
colors: {
  custom: {
    50: '#4a654a',
    500: '#042b07',
    950: '#000000',
  },
}
SCSS
$custom: #042b07;
$custom-light: #4a654a;
$custom-dark: #000000;
JSON
{
  "hex": "#042b07",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 7
  },
  "hsl": {
    "h": 124.615,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25315,
    "c": 0.0749,
    "h": 144.3
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#042B07
secondary
#6E1D68
accent
#2EEAF9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010501
muted
#777A77

Preview Lab

Preview with #042B07

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

Preview Lab → · Contrast checker → · Palette generator →

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