#040C09#040C09

#040C09 is a very dark, near-neutral teal. Relative luminance 0.003; OKLCH L 14.4% C 0.016 H 171.8°. Best body text is #FFFFFF at 19.78:1 contrast (WCAG AA passes).

Color values

HEX#040C09
RGBrgb(4, 12, 9)
HSLhsl(158, 50%, 3%)
HSVhsv(158, 67%, 5%)
CMYKcmyk(66.7%, 0%, 25%, 95.3%)
CIE-LABlab(2.79, -2.56, 0.43)
CIE-LCHlch(2.79, 2.59, 170.44°)
OKLaboklab(14.35% -0.0159 0.0023)
OKLCHoklch(14.35% 0.016 171.8)
XYZxyz(0.2308, 0.3085, 0.3058)
Luminance0.0031 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C09 #0C0407
analogous
#040C05 #040C09 #040B0C
triadic
#040C09 #09040C #0C0904
tetradic
#040C09 #05040C #0C0407 #0B0C04
square
#040C09 #05040C #0C0407 #0B0C04
split-complementary
#040C09 #0C040B #0C0504
monochromatic
#081711 #081711 #081711 #133A2B #23684E

Accessibility & contrast

On white

19.78
#040C09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040C09 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C09
19.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C09#FFFFFF#000000##FFFFFF
##040C091.0019.781.0619.78
#FFFFFF19.781.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B0B09
Deuteranopia (green-blind)
#0A0A09
Tritanopia (blue-blind)
#020C0B
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040c09;
/* rgb */ color: rgb(4, 12, 9);
/* oklch */ color: oklch(14.4% 0.016 171.8);
Tailwind
colors: {
  custom: {
    50: '#484c4b',
    500: '#040c09',
    950: '#000000',
  },
}
SCSS
$custom: #040c09;
$custom-light: #484c4b;
$custom-dark: #000000;
JSON
{
  "hex": "#040c09",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 9
  },
  "hsl": {
    "h": 157.5,
    "s": 50,
    "l": 3.137
  },
  "oklch": {
    "l": 0.14354,
    "c": 0.01606,
    "h": 171.8
  },
  "luminance": 0.00308
}

Semantic roles & 50–950 ramp

primary
#040C09
secondary
#492331
accent
#4E82DA
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040C09

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

Preview Lab → · Contrast checker → · Palette generator →

#040C09 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva