#04310E#04310E

#04310E is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.5% C 0.077 H 146.8°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#04310E
RGBrgb(4, 49, 14)
HSLhsl(133, 85%, 10%)
HSVhsv(133, 92%, 19%)
CMYKcmyk(91.8%, 0%, 71.4%, 80.8%)
CIE-LABlab(16.77, -23.93, 17.67)
CIE-LCHlch(16.77, 29.75, 143.55°)
OKLaboklab(27.45% -0.0644 0.0421)
OKLCHoklch(27.45% 0.077 146.8)
XYZxyz(1.2276, 2.2540, 0.7857)
Luminance0.0225 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04310E #310427
analogous
#103104 #04310E #043124
triadic
#04310E #0E0431 #310E04
tetradic
#04310E #041031 #310427 #312404
square
#04310E #041031 #310427 #312404
split-complementary
#04310E #240431 #310410
monochromatic
#021C08 #021C08 #04310E #096A1E #0DA22E

Accessibility & contrast

On white

14.47
#04310E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04310E
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04310E#FFFFFF#000000##FFFFFF
##04310E1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04310e;
/* rgb */ color: rgb(4, 49, 14);
/* oklch */ color: oklch(27.5% 0.077 146.8);
Tailwind
colors: {
  custom: {
    50: '#4d6a4e',
    500: '#04310e',
    950: '#000000',
  },
}
SCSS
$custom: #04310e;
$custom-light: #4d6a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#04310e",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 14
  },
  "hsl": {
    "h": 133.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27454,
    "c": 0.07692,
    "h": 146.8
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#04310E
secondary
#731D60
accent
#2DCDFB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #04310E

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

Preview Lab → · Contrast checker → · Palette generator →

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