#04310A#04310A

#04310A is a dark, moderate green. Relative luminance 0.022; OKLCH L 27.4% C 0.081 H 145.0°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#04310A
RGBrgb(4, 49, 10)
HSLhsl(128, 85%, 10%)
HSVhsv(128, 92%, 19%)
CMYKcmyk(91.8%, 0%, 79.6%, 80.8%)
CIE-LABlab(16.72, -24.51, 19.43)
CIE-LCHlch(16.72, 31.28, 141.59°)
OKLaboklab(27.4% -0.0661 0.0463)
OKLCHoklch(27.4% 0.081 145)
XYZxyz(1.2031, 2.2442, 0.6569)
Luminance0.0224 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04310A #31042B
analogous
#143104 #04310A #043120
triadic
#04310A #0A0431 #310A04
tetradic
#04310A #041431 #31042B #312004
square
#04310A #041431 #31042B #312004
split-complementary
#04310A #200431 #310414
monochromatic
#021C06 #021C06 #04310A #096A16 #0DA221

Accessibility & contrast

On white

14.49
#04310A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#04310A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04310A
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04310A#FFFFFF#000000##FFFFFF
##04310A1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B06
Deuteranopia (green-blind)
#2D280E
Tritanopia (blue-blind)
#002F29
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #04310a;
/* rgb */ color: rgb(4, 49, 10);
/* oklch */ color: oklch(27.4% 0.081 145.0);
Tailwind
colors: {
  custom: {
    50: '#4d6a4b',
    500: '#04310a',
    950: '#000000',
  },
}
SCSS
$custom: #04310a;
$custom-light: #4d6a4b;
$custom-dark: #000000;
JSON
{
  "hex": "#04310a",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 10
  },
  "hsl": {
    "h": 128,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.274,
    "c": 0.08069,
    "h": 145
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#04310A
secondary
#731D68
accent
#2DE0FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #04310A

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

Preview Lab → · Contrast checker → · Palette generator →

#04310A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva