#040F0F#040F0F

#040F0F is a very dark, near-neutral teal. Relative luminance 0.004; OKLCH L 15.7% C 0.018 H 195.5°. Best body text is #FFFFFF at 19.44:1 contrast (WCAG AA passes).

Color values

HEX#040F0F
RGBrgb(4, 15, 15)
HSLhsl(180, 58%, 4%)
HSVhsv(180, 73%, 6%)
CMYKcmyk(73.3%, 0%, 0%, 94.1%)
CIE-LABlab(3.63, -3.07, -1.08)
CIE-LCHlch(3.63, 3.25, 199.42°)
OKLaboklab(15.69% -0.0173 -0.0048)
OKLCHoklch(15.69% 0.018 195.5)
XYZxyz(0.3071, 0.4019, 0.5132)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F0F #0F0404
analogous
#040F09 #040F0F #04090F
triadic
#040F0F #0F040F #0F0F04
tetradic
#040F0F #09040F #0F0404 #090F04
square
#040F0F #09040F #0F0404 #090F04
split-complementary
#040F0F #0F0409 #0F0904
monochromatic
#061818 #061818 #061818 #113F3F #1E7070

Accessibility & contrast

On white

19.44
#040F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F0F
19.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F0F#FFFFFF#000000##FFFFFF
##040F0F1.0019.441.0819.44
#FFFFFF19.441.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0E0F
Deuteranopia (green-blind)
#0B0C0F
Tritanopia (blue-blind)
#01100F
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040f0f;
/* rgb */ color: rgb(4, 15, 15);
/* oklch */ color: oklch(15.7% 0.018 195.5);
Tailwind
colors: {
  custom: {
    50: '#484e4e',
    500: '#040f0f',
    950: '#000000',
  },
}
SCSS
$custom: #040f0f;
$custom-light: #484e4e;
$custom-dark: #000000;
JSON
{
  "hex": "#040f0f",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 15
  },
  "hsl": {
    "h": 180,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.1569,
    "c": 0.01795,
    "h": 195.5
  },
  "luminance": 0.00402
}

Semantic roles & 50–950 ramp

primary
#040F0F
secondary
#4E2121
accent
#4747E1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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