#040F12#040F12

#040F12 is a very dark, near-neutral cyan. Relative luminance 0.004; OKLCH L 15.8% C 0.019 H 215.1°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#040F12
RGBrgb(4, 15, 18)
HSLhsl(193, 64%, 4%)
HSVhsv(193, 78%, 7%)
CMYKcmyk(77.8%, 16.7%, 0%, 92.9%)
CIE-LABlab(3.71, -2.49, -2.67)
CIE-LCHlch(3.71, 3.65, 226.99°)
OKLaboklab(15.85% -0.0155 -0.0109)
OKLCHoklch(15.85% 0.019 215.1)
XYZxyz(0.3300, 0.4111, 0.6341)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F12 #120704
analogous
#04120E #040F12 #040812
triadic
#040F12 #12040F #0F1204
tetradic
#040F12 #0E0412 #120704 #081204
square
#040F12 #0E0412 #120704 #081204
split-complementary
#040F12 #120408 #120E04
monochromatic
#061519 #061519 #061519 #0F3944 #1A6276

Accessibility & contrast

On white

19.40
#040F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F12
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F12#FFFFFF#000000##FFFFFF
##040F121.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0E12
Deuteranopia (green-blind)
#0A0C12
Tritanopia (blue-blind)
#001010
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040f12;
/* rgb */ color: rgb(4, 15, 18);
/* oklch */ color: oklch(15.8% 0.019 215.1);
Tailwind
colors: {
  custom: {
    50: '#484e50',
    500: '#040f12',
    950: '#000000',
  },
}
SCSS
$custom: #040f12;
$custom-light: #484e50;
$custom-dark: #000000;
JSON
{
  "hex": "#040f12",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 18
  },
  "hsl": {
    "h": 192.857,
    "s": 63.636,
    "l": 4.314
  },
  "oklch": {
    "l": 0.15848,
    "c": 0.01895,
    "h": 215.1
  },
  "luminance": 0.00411
}

Semantic roles & 50–950 ramp

primary
#040F12
secondary
#522A20
accent
#6541E7
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040F12

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

Preview Lab → · Contrast checker → · Palette generator →

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