#040F1C#040F1C

#040F1C is a very dark, muted cyan. Relative luminance 0.005; OKLCH L 16.5% C 0.033 H 251.1°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#040F1C
RGBrgb(4, 15, 28)
HSLhsl(213, 75%, 6%)
HSVhsv(213, 86%, 11%)
CMYKcmyk(85.7%, 46.4%, 0%, 89%)
CIE-LABlab(4.08, 0.06, -9.43)
CIE-LCHlch(4.08, 9.43, 270.36°)
OKLaboklab(16.51% -0.0107 -0.0311)
OKLCHoklch(16.51% 0.033 251.1)
XYZxyz(0.4304, 0.4513, 1.1628)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F1C #1C1104
analogous
#041B1C #040F1C #05041C
triadic
#040F1C #1C040F #0F1C04
tetradic
#040F1C #1C041B #1C1104 #041C05
square
#040F1C #1C041B #1C1104 #041C05
split-complementary
#040F1C #1C0504 #1B1C04
monochromatic
#040E1B #040E1B #040F1C #0C2C52 #134887

Accessibility & contrast

On white

19.26
#040F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040F1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F1C
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F1C#FFFFFF#000000##FFFFFF
##040F1C1.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09101D
Deuteranopia (green-blind)
#060D1C
Tritanopia (blue-blind)
#001214
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040f1c;
/* rgb */ color: rgb(4, 15, 28);
/* oklch */ color: oklch(16.5% 0.033 251.1);
Tailwind
colors: {
  custom: {
    50: '#484e58',
    500: '#040f1c',
    950: '#000000',
  },
}
SCSS
$custom: #040f1c;
$custom-light: #484e58;
$custom-dark: #000000;
JSON
{
  "hex": "#040f1c",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 28
  },
  "hsl": {
    "h": 212.5,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.16506,
    "c": 0.03291,
    "h": 251.1
  },
  "luminance": 0.00451
}

Semantic roles & 50–950 ramp

primary
#040F1C
secondary
#5E411D
accent
#9C36F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #040F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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