#040803#040803

#040803 is a very dark, near-neutral green. Relative luminance 0.002; OKLCH L 12.6% C 0.018 H 138.0°. Best body text is #FFFFFF at 20.17:1 contrast (WCAG AA passes).

Color values

HEX#040803
RGBrgb(4, 8, 3)
HSLhsl(108, 45%, 2%)
HSVhsv(108, 63%, 3%)
CMYKcmyk(50%, 0%, 62.5%, 96.9%)
CIE-LABlab(1.86, -1.74, 1.52)
CIE-LCHlch(1.86, 2.31, 138.81°)
OKLaboklab(12.55% -0.0136 0.0122)
OKLCHoklch(12.55% 0.018 138)
XYZxyz(0.1533, 0.2060, 0.1178)
Luminance0.0021 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040803 #070308
analogous
#070803 #040803 #030805
triadic
#040803 #030408 #080304
tetradic
#040803 #030708 #070308 #080503
square
#040803 #030708 #070308 #080503
split-complementary
#040803 #050308 #080307
monochromatic
#0B1608 #0B1608 #0B1608 #1A3514 #316124

Accessibility & contrast

On white

20.17
#040803 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040803 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040803
20.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040803#FFFFFF#000000##FFFFFF
##0408031.0020.171.0420.17
#FFFFFF20.171.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080703
Deuteranopia (green-blind)
#080703
Tritanopia (blue-blind)
#040806
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040803;
/* rgb */ color: rgb(4, 8, 3);
/* oklch */ color: oklch(12.6% 0.018 138.0);
Tailwind
colors: {
  custom: {
    50: '#484a48',
    500: '#040803',
    950: '#000000',
  },
}
SCSS
$custom: #040803;
$custom-light: #484a48;
$custom-dark: #000000;
JSON
{
  "hex": "#040803",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 3
  },
  "hsl": {
    "h": 108,
    "s": 45.455,
    "l": 2.157
  },
  "oklch": {
    "l": 0.1255,
    "c": 0.01829,
    "h": 138
  },
  "luminance": 0.00206
}

Semantic roles & 50–950 ramp

primary
#040803
secondary
#3D2344
accent
#53D5BB
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040803

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

Preview Lab → · Contrast checker → · Palette generator →

#040803 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva