#04310D#04310D

#04310D is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.4% C 0.078 H 146.3°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#04310D
RGBrgb(4, 49, 13)
HSLhsl(132, 85%, 10%)
HSVhsv(132, 92%, 19%)
CMYKcmyk(91.8%, 0%, 73.5%, 80.8%)
CIE-LABlab(16.75, -24.08, 18.15)
CIE-LCHlch(16.75, 30.16, 143.00°)
OKLaboklab(27.44% -0.0648 0.0432)
OKLCHoklch(27.44% 0.078 146.3)
XYZxyz(1.2209, 2.2513, 0.7509)
Luminance0.0225 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04310D #310428
analogous
#113104 #04310D #043123
triadic
#04310D #0D0431 #310D04
tetradic
#04310D #041131 #310428 #312304
square
#04310D #041131 #310428 #312304
split-complementary
#04310D #230431 #310411
monochromatic
#021C08 #021C08 #04310D #096A1C #0DA22B

Accessibility & contrast

On white

14.48
#04310D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04310D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04310D#FFFFFF#000000##FFFFFF
##04310D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C09
Deuteranopia (green-blind)
#2D2810
Tritanopia (blue-blind)
#003029
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #04310d;
/* rgb */ color: rgb(4, 49, 13);
/* oklch */ color: oklch(27.4% 0.078 146.3);
Tailwind
colors: {
  custom: {
    50: '#4d6a4d',
    500: '#04310d',
    950: '#000000',
  },
}
SCSS
$custom: #04310d;
$custom-light: #4d6a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#04310d",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 13
  },
  "hsl": {
    "h": 132,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.2744,
    "c": 0.07791,
    "h": 146.3
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#04310D
secondary
#731D62
accent
#2DD2FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #04310D

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

Preview Lab → · Contrast checker → · Palette generator →

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