#040E1C#040E1C

#040E1C is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.2% C 0.034 H 254.3°. Best body text is #FFFFFF at 19.36:1 contrast (WCAG AA passes).

Color values

HEX#040E1C
RGBrgb(4, 14, 28)
HSLhsl(215, 75%, 6%)
HSVhsv(215, 86%, 11%)
CMYKcmyk(85.7%, 50%, 0%, 89%)
CIE-LABlab(3.83, 0.57, -9.80)
CIE-LCHlch(3.83, 9.82, 273.32°)
OKLaboklab(16.19% -0.0093 -0.033)
OKLCHoklch(16.19% 0.034 254.3)
XYZxyz(0.4166, 0.4237, 1.1582)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E1C #1C1204
analogous
#041A1C #040E1C #06041C
triadic
#040E1C #1C040E #0E1C04
tetradic
#040E1C #1C041A #1C1204 #041C06
square
#040E1C #1C041A #1C1204 #041C06
split-complementary
#040E1C #1C0604 #1A1C04
monochromatic
#040D1B #040D1B #040E1C #0C2952 #134487

Accessibility & contrast

On white

19.36
#040E1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E1C
19.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E1C#FFFFFF#000000##FFFFFF
##040E1C1.0019.361.0819.36
#FFFFFF19.361.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080F1D
Deuteranopia (green-blind)
#050C1C
Tritanopia (blue-blind)
#001113
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040e1c;
/* rgb */ color: rgb(4, 14, 28);
/* oklch */ color: oklch(16.2% 0.034 254.3);
Tailwind
colors: {
  custom: {
    50: '#484d58',
    500: '#040e1c',
    950: '#000000',
  },
}
SCSS
$custom: #040e1c;
$custom-light: #484d58;
$custom-dark: #000000;
JSON
{
  "hex": "#040e1c",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 28
  },
  "hsl": {
    "h": 215,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.16194,
    "c": 0.03426,
    "h": 254.3
  },
  "luminance": 0.00424
}

Semantic roles & 50–950 ramp

primary
#040E1C
secondary
#5E431D
accent
#A436F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #040E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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