#040E1E#040E1E

#040E1E is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.4% C 0.038 H 256.9°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#040E1E
RGBrgb(4, 14, 30)
HSLhsl(217, 76%, 7%)
HSVhsv(217, 87%, 12%)
CMYKcmyk(86.7%, 53.3%, 0%, 88.2%)
CIE-LABlab(3.92, 1.20, -11.24)
CIE-LCHlch(3.92, 11.30, 276.09°)
OKLaboklab(16.35% -0.0086 -0.0369)
OKLCHoklch(16.35% 0.038 256.9)
XYZxyz(0.4414, 0.4336, 1.2885)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E1E #1E1404
analogous
#041B1E #040E1E #07041E
triadic
#040E1E #1E040E #0E1E04
tetradic
#040E1E #1E041B #1E1404 #041E07
square
#040E1E #1E041B #1E1404 #041E07
split-complementary
#040E1E #1E0704 #1B1E04
monochromatic
#040D1B #040D1B #040E1E #0B2754 #12408A

Accessibility & contrast

On white

19.32
#040E1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E1E
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E1E#FFFFFF#000000##FFFFFF
##040E1E1.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070F1F
Deuteranopia (green-blind)
#040D1E
Tritanopia (blue-blind)
#001214
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040e1e;
/* rgb */ color: rgb(4, 14, 30);
/* oklch */ color: oklch(16.4% 0.038 256.9);
Tailwind
colors: {
  custom: {
    50: '#484d59',
    500: '#040e1e',
    950: '#000000',
  },
}
SCSS
$custom: #040e1e;
$custom-light: #484d59;
$custom-dark: #000000;
JSON
{
  "hex": "#040e1e",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 30
  },
  "hsl": {
    "h": 216.923,
    "s": 76.471,
    "l": 6.667
  },
  "oklch": {
    "l": 0.16354,
    "c": 0.03789,
    "h": 256.9
  },
  "luminance": 0.00434
}

Semantic roles & 50–950 ramp

primary
#040E1E
secondary
#61471D
accent
#AA35F3
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #040E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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