#040B1C#040B1C

#040B1C is a very dark, muted blue. Relative luminance 0.003; OKLCH L 15.3% C 0.039 H 262.5°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#040B1C
RGBrgb(4, 11, 28)
HSLhsl(223, 75%, 6%)
HSVhsv(223, 86%, 11%)
CMYKcmyk(85.7%, 60.7%, 0%, 89%)
CIE-LABlab(3.15, 1.95, -10.81)
CIE-LCHlch(3.15, 10.98, 280.23°)
OKLaboklab(15.28% -0.0051 -0.0385)
OKLCHoklch(15.28% 0.039 262.5)
XYZxyz(0.3793, 0.3490, 1.1458)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B1C #1C1504
analogous
#04171C #040B1C #09041C
triadic
#040B1C #1C040B #0B1C04
tetradic
#040B1C #1C0417 #1C1504 #041C09
square
#040B1C #1C0417 #1C1504 #041C09
split-complementary
#040B1C #1C0904 #171C04
monochromatic
#040B1B #040B1B #040B1C #0C2052 #133587

Accessibility & contrast

On white

19.63
#040B1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040B1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B1C
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B1C#FFFFFF#000000##FFFFFF
##040B1C1.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040D1D
Deuteranopia (green-blind)
#020A1C
Tritanopia (blue-blind)
#000F12
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040b1c;
/* rgb */ color: rgb(4, 11, 28);
/* oklch */ color: oklch(15.3% 0.039 262.5);
Tailwind
colors: {
  custom: {
    50: '#484c58',
    500: '#040b1c',
    950: '#000000',
  },
}
SCSS
$custom: #040b1c;
$custom-light: #484c58;
$custom-dark: #000000;
JSON
{
  "hex": "#040b1c",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 28
  },
  "hsl": {
    "h": 222.5,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.15281,
    "c": 0.03884,
    "h": 262.5
  },
  "luminance": 0.00349
}

Semantic roles & 50–950 ramp

primary
#040B1C
secondary
#5E4B1D
accent
#BB36F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #040B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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