#040F0C#040F0C

#040F0C is a very dark, near-neutral teal. Relative luminance 0.004; OKLCH L 15.6% C 0.019 H 176.3°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#040F0C
RGBrgb(4, 15, 12)
HSLhsl(164, 58%, 4%)
HSVhsv(164, 73%, 6%)
CMYKcmyk(73.3%, 0%, 20%, 94.1%)
CIE-LABlab(3.56, -3.58, 0.29)
CIE-LCHlch(3.56, 3.59, 175.36°)
OKLaboklab(15.55% -0.0192 0.0012)
OKLCHoklch(15.55% 0.019 176.3)
XYZxyz(0.2872, 0.3940, 0.4087)
Luminance0.0039 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F0C #0F0407
analogous
#040F06 #040F0C #040C0F
triadic
#040F0C #0C040F #0F0C04
tetradic
#040F0C #06040F #0F0407 #0C0F04
square
#040F0C #06040F #0F0407 #0C0F04
split-complementary
#040F0C #0F040C #0F0604
monochromatic
#061813 #061813 #061813 #113F33 #1E7059

Accessibility & contrast

On white

19.47
#040F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F0C
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F0C#FFFFFF#000000##FFFFFF
##040F0C1.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0E0C
Deuteranopia (green-blind)
#0C0C0C
Tritanopia (blue-blind)
#020F0E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040f0c;
/* rgb */ color: rgb(4, 15, 12);
/* oklch */ color: oklch(15.6% 0.019 176.3);
Tailwind
colors: {
  custom: {
    50: '#484e4c',
    500: '#040f0c',
    950: '#000000',
  },
}
SCSS
$custom: #040f0c;
$custom-light: #484e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#040f0c",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 12
  },
  "hsl": {
    "h": 163.636,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.15551,
    "c": 0.01927,
    "h": 176.3
  },
  "luminance": 0.00394
}

Semantic roles & 50–950 ramp

primary
#040F0C
secondary
#4E212D
accent
#4771E1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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