#042B08#042B08

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

Color values

HEX#042B08
RGBrgb(4, 43, 8)
HSLhsl(126, 83%, 9%)
HSVhsv(126, 91%, 17%)
CMYKcmyk(90.7%, 0%, 81.4%, 83.1%)
CIE-LABlab(14.24, -22.34, 17.09)
CIE-LCHlch(14.24, 28.13, 142.57°)
OKLaboklab(25.33% -0.0603 0.0426)
OKLCHoklch(25.33% 0.074 144.7)
XYZxyz(0.9577, 1.7710, 0.5210)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B08 #2B0427
analogous
#142B04 #042B08 #042B1C
triadic
#042B08 #08042B #2B0804
tetradic
#042B08 #04142B #2B0427 #2B1C04
square
#042B08 #04142B #2B0427 #2B1C04
split-complementary
#042B08 #1C042B #2B0414
monochromatic
#031C05 #031C05 #042B08 #096312 #0E9B1D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##042B08#FFFFFF#000000##FFFFFF
##042B081.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)
#2C2605
Deuteranopia (green-blind)
#27230B
Tritanopia (blue-blind)
#002A24
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042b08;
/* rgb */ color: rgb(4, 43, 8);
/* oklch */ color: oklch(25.3% 0.074 144.7);
Tailwind
colors: {
  custom: {
    50: '#4a654a',
    500: '#042b08',
    950: '#000000',
  },
}
SCSS
$custom: #042b08;
$custom-light: #4a654a;
$custom-dark: #000000;
JSON
{
  "hex": "#042b08",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 8
  },
  "hsl": {
    "h": 126.154,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25329,
    "c": 0.07386,
    "h": 144.7
  },
  "luminance": 0.01771
}

Semantic roles & 50–950 ramp

primary
#042B08
secondary
#6E1D65
accent
#2EE5F9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010501
muted
#777A77

Preview Lab

Preview with #042B08

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

Preview Lab → · Contrast checker → · Palette generator →

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