#04311A#04311A

#04311A is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.7% C 0.064 H 155.5°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#04311A
RGBrgb(4, 49, 26)
HSLhsl(149, 85%, 10%)
HSVhsv(149, 92%, 19%)
CMYKcmyk(91.8%, 0%, 46.9%, 80.8%)
CIE-LABlab(16.97, -21.50, 10.56)
CIE-LCHlch(16.97, 23.95, 153.84°)
OKLaboklab(27.69% -0.0579 0.0264)
OKLCHoklch(27.69% 0.064 155.5)
XYZxyz(1.3347, 2.2969, 1.3501)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04311A #31041B
analogous
#053104 #04311A #043130
triadic
#04311A #1A0431 #311A04
tetradic
#04311A #040531 #31041B #313004
square
#04311A #040531 #31041B #313004
split-complementary
#04311A #300431 #310405
monochromatic
#021C0F #021C0F #04311A #096A38 #0DA256

Accessibility & contrast

On white

14.39
#04311A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#04311A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04311A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04311A#FFFFFF#000000##FFFFFF
##04311A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312C18
Deuteranopia (green-blind)
#2B281C
Tritanopia (blue-blind)
#00302B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #04311a;
/* rgb */ color: rgb(4, 49, 26);
/* oklch */ color: oklch(27.7% 0.064 155.5);
Tailwind
colors: {
  custom: {
    50: '#4c6956',
    500: '#04311a',
    950: '#000000',
  },
}
SCSS
$custom: #04311a;
$custom-light: #4c6956;
$custom-dark: #000000;
JSON
{
  "hex": "#04311a",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 26
  },
  "hsl": {
    "h": 149.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27693,
    "c": 0.06365,
    "h": 155.5
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#04311A
secondary
#731D49
accent
#2D96FB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #04311A

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

Preview Lab → · Contrast checker → · Palette generator →

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