#040A12#040A12

#040A12 is a very dark, muted cyan. Relative luminance 0.003; OKLCH L 14.2% C 0.021 H 250.6°. Best body text is #FFFFFF at 19.86:1 contrast (WCAG AA passes).

Color values

HEX#040A12
RGBrgb(4, 10, 18)
HSLhsl(214, 64%, 4%)
HSVhsv(214, 78%, 7%)
CMYKcmyk(77.8%, 44.4%, 0%, 92.9%)
CIE-LABlab(2.59, -0.18, -4.31)
CIE-LCHlch(2.59, 4.31, 267.55°)
OKLaboklab(14.18% -0.0071 -0.0201)
OKLCHoklch(14.18% 0.021 250.6)
XYZxyz(0.2678, 0.2865, 0.6133)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A12 #120C04
analogous
#041112 #040A12 #050412
triadic
#040A12 #12040A #0A1204
tetradic
#040A12 #120411 #120C04 #041205
square
#040A12 #120411 #120C04 #041205
split-complementary
#040A12 #120504 #111204
monochromatic
#060E19 #060E19 #060E19 #0F2644 #1A4276

Accessibility & contrast

On white

19.86
#040A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A12
19.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A12#FFFFFF#000000##FFFFFF
##040A121.0019.861.0619.86
#FFFFFF19.861.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070A12
Deuteranopia (green-blind)
#060912
Tritanopia (blue-blind)
#010C0D
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #040a12;
/* rgb */ color: rgb(4, 10, 18);
/* oklch */ color: oklch(14.2% 0.021 250.6);
Tailwind
colors: {
  custom: {
    50: '#484b4f',
    500: '#040a12',
    950: '#000000',
  },
}
SCSS
$custom: #040a12;
$custom-light: #484b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#040a12",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 18
  },
  "hsl": {
    "h": 214.286,
    "s": 63.636,
    "l": 4.314
  },
  "oklch": {
    "l": 0.14176,
    "c": 0.02132,
    "h": 250.6
  },
  "luminance": 0.00287
}

Semantic roles & 50–950 ramp

primary
#040A12
secondary
#523D20
accent
#A041E7
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040A12

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

Preview Lab → · Contrast checker → · Palette generator →

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