#040D0F#040D0F

#040D0F is a very dark, near-neutral cyan. Relative luminance 0.003; OKLCH L 15.0% C 0.016 H 211.0°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#040D0F
RGBrgb(4, 13, 15)
HSLhsl(191, 58%, 4%)
HSVhsv(191, 73%, 6%)
CMYKcmyk(73.3%, 13.3%, 0%, 94.1%)
CIE-LABlab(3.14, -2.08, -1.79)
CIE-LCHlch(3.14, 2.74, 220.81°)
OKLaboklab(15% -0.0139 -0.0083)
OKLCHoklch(15% 0.016 211)
XYZxyz(0.2802, 0.3481, 0.5043)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D0F #0F0604
analogous
#040F0B #040D0F #04070F
triadic
#040D0F #0F040D #0D0F04
tetradic
#040D0F #0B040F #0F0604 #070F04
square
#040D0F #0B040F #0F0604 #070F04
split-complementary
#040D0F #0F0407 #0F0B04
monochromatic
#061518 #061518 #061518 #11373F #1E6170

Accessibility & contrast

On white

19.63
#040D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040D0F
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D0F#FFFFFF#000000##FFFFFF
##040D0F1.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B0C0F
Deuteranopia (green-blind)
#090B0F
Tritanopia (blue-blind)
#010E0E
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040d0f;
/* rgb */ color: rgb(4, 13, 15);
/* oklch */ color: oklch(15.0% 0.016 211.0);
Tailwind
colors: {
  custom: {
    50: '#484d4e',
    500: '#040d0f',
    950: '#000000',
  },
}
SCSS
$custom: #040d0f;
$custom-light: #484d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#040d0f",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 15
  },
  "hsl": {
    "h": 190.909,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.14998,
    "c": 0.01618,
    "h": 211
  },
  "luminance": 0.00348
}

Semantic roles & 50–950 ramp

primary
#040D0F
secondary
#4E2921
accent
#6347E1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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