#04310B#04310B

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

Color values

HEX#04310B
RGBrgb(4, 49, 11)
HSLhsl(129, 85%, 10%)
HSVhsv(129, 92%, 19%)
CMYKcmyk(91.8%, 0%, 77.6%, 80.8%)
CIE-LABlab(16.73, -24.38, 19.03)
CIE-LCHlch(16.73, 30.92, 142.02°)
OKLaboklab(27.41% -0.0657 0.0453)
OKLCHoklch(27.41% 0.08 145.4)
XYZxyz(1.2087, 2.2465, 0.6864)
Luminance0.0225 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04310B #31042A
analogous
#133104 #04310B #043121
triadic
#04310B #0B0431 #310B04
tetradic
#04310B #041331 #31042A #312104
square
#04310B #041331 #31042A #312104
split-complementary
#04310B #210431 #310413
monochromatic
#021C06 #021C06 #04310B #096A18 #0DA224

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##04310B#FFFFFF#000000##FFFFFF
##04310B1.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)
#322B07
Deuteranopia (green-blind)
#2D280E
Tritanopia (blue-blind)
#002F29
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #04310b;
/* rgb */ color: rgb(4, 49, 11);
/* oklch */ color: oklch(27.4% 0.080 145.4);
Tailwind
colors: {
  custom: {
    50: '#4d6a4c',
    500: '#04310b',
    950: '#000000',
  },
}
SCSS
$custom: #04310b;
$custom-light: #4d6a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#04310b",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 11
  },
  "hsl": {
    "h": 129.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27412,
    "c": 0.0798,
    "h": 145.4
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#04310B
secondary
#731D66
accent
#2DDBFB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #04310B

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

Preview Lab → · Contrast checker → · Palette generator →

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