#040F0B#040F0B

#040F0B is a very dark, muted teal. Relative luminance 0.004; OKLCH L 15.5% C 0.020 H 170.8°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#040F0B
RGBrgb(4, 15, 11)
HSLhsl(158, 58%, 4%)
HSVhsv(158, 73%, 6%)
CMYKcmyk(73.3%, 0%, 26.7%, 94.1%)
CIE-LABlab(3.54, -3.72, 0.70)
CIE-LCHlch(3.54, 3.79, 169.32°)
OKLaboklab(15.51% -0.0199 0.0032)
OKLCHoklch(15.51% 0.02 170.8)
XYZxyz(0.2813, 0.3916, 0.3773)
Luminance0.0039 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F0B #0F0408
analogous
#040F05 #040F0B #040D0F
triadic
#040F0B #0B040F #0F0B04
tetradic
#040F0B #05040F #0F0408 #0D0F04
square
#040F0B #05040F #0F0408 #0D0F04
split-complementary
#040F0B #0F040D #0F0504
monochromatic
#061812 #061812 #061812 #113F2E #1E7052

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##040F0B#FFFFFF#000000##FFFFFF
##040F0B1.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)
#0E0E0B
Deuteranopia (green-blind)
#0C0C0B
Tritanopia (blue-blind)
#020F0E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040f0b;
/* rgb */ color: rgb(4, 15, 11);
/* oklch */ color: oklch(15.5% 0.020 170.8);
Tailwind
colors: {
  custom: {
    50: '#484e4c',
    500: '#040f0b',
    950: '#000000',
  },
}
SCSS
$custom: #040f0b;
$custom-light: #484e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#040f0b",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 11
  },
  "hsl": {
    "h": 158.182,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.15508,
    "c": 0.02016,
    "h": 170.8
  },
  "luminance": 0.00392
}

Semantic roles & 50–950 ramp

primary
#040F0B
secondary
#4E2131
accent
#477FE1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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