#040E12#040E12

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

Color values

HEX#040E12
RGBrgb(4, 14, 18)
HSLhsl(197, 64%, 4%)
HSVhsv(197, 78%, 7%)
CMYKcmyk(77.8%, 22.2%, 0%, 92.9%)
CIE-LABlab(3.46, -1.98, -3.03)
CIE-LCHlch(3.46, 3.62, 236.86°)
OKLaboklab(15.51% -0.0138 -0.0127)
OKLCHoklch(15.51% 0.019 222.6)
XYZxyz(0.3162, 0.3835, 0.6295)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E12 #120804
analogous
#04120F #040E12 #040712
triadic
#040E12 #12040E #0E1204
tetradic
#040E12 #0F0412 #120804 #071204
square
#040E12 #0F0412 #120804 #071204
split-complementary
#040E12 #120407 #120F04
monochromatic
#061319 #061319 #061319 #0F3544 #1A5C76

Accessibility & contrast

On white

19.50
#040E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E12
19.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E12#FFFFFF#000000##FFFFFF
##040E121.0019.501.0819.50
#FFFFFF19.501.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0D12
Deuteranopia (green-blind)
#090C12
Tritanopia (blue-blind)
#000F0F
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040e12;
/* rgb */ color: rgb(4, 14, 18);
/* oklch */ color: oklch(15.5% 0.019 222.6);
Tailwind
colors: {
  custom: {
    50: '#484d50',
    500: '#040e12',
    950: '#000000',
  },
}
SCSS
$custom: #040e12;
$custom-light: #484d50;
$custom-dark: #000000;
JSON
{
  "hex": "#040e12",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 18
  },
  "hsl": {
    "h": 197.143,
    "s": 63.636,
    "l": 4.314
  },
  "oklch": {
    "l": 0.15508,
    "c": 0.0188,
    "h": 222.6
  },
  "luminance": 0.00384
}

Semantic roles & 50–950 ramp

primary
#040E12
secondary
#522E20
accent
#7041E7
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040E12

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

Preview Lab → · Contrast checker → · Palette generator →

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