#04310C#04310C

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

Color values

HEX#04310C
RGBrgb(4, 49, 12)
HSLhsl(131, 85%, 10%)
HSVhsv(131, 92%, 19%)
CMYKcmyk(91.8%, 0%, 75.5%, 80.8%)
CIE-LABlab(16.74, -24.23, 18.60)
CIE-LCHlch(16.74, 30.55, 142.49°)
OKLaboklab(27.43% -0.0653 0.0443)
OKLCHoklch(27.43% 0.079 145.8)
XYZxyz(1.2147, 2.2488, 0.7178)
Luminance0.0225 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04310C #310429
analogous
#123104 #04310C #043122
triadic
#04310C #0C0431 #310C04
tetradic
#04310C #041231 #310429 #312204
square
#04310C #041231 #310429 #312204
split-complementary
#04310C #220431 #310412
monochromatic
#021C07 #021C07 #04310C #096A1A #0DA228

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##04310C#FFFFFF#000000##FFFFFF
##04310C1.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)
#322B08
Deuteranopia (green-blind)
#2D280F
Tritanopia (blue-blind)
#003029
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #04310c;
/* rgb */ color: rgb(4, 49, 12);
/* oklch */ color: oklch(27.4% 0.079 145.8);
Tailwind
colors: {
  custom: {
    50: '#4d6a4d',
    500: '#04310c',
    950: '#000000',
  },
}
SCSS
$custom: #04310c;
$custom-light: #4d6a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#04310c",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 130.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27426,
    "c": 0.07887,
    "h": 145.8
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#04310C
secondary
#731D64
accent
#2DD6FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #04310C

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

Preview Lab → · Contrast checker → · Palette generator →

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