#040A1C#040A1C

#040A1C is a very dark, muted blue. Relative luminance 0.003; OKLCH L 15.0% C 0.041 H 264.7°. Best body text is #FFFFFF at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#040A1C
RGBrgb(4, 10, 28)
HSLhsl(225, 75%, 6%)
HSVhsv(225, 86%, 11%)
CMYKcmyk(85.7%, 64.3%, 0%, 89%)
CIE-LABlab(2.95, 2.36, -11.10)
CIE-LCHlch(2.95, 11.35, 281.99°)
OKLaboklab(14.99% -0.0037 -0.0403)
OKLCHoklch(14.99% 0.041 264.7)
XYZxyz(0.3681, 0.3267, 1.1420)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A1C #1C1604
analogous
#04161C #040A1C #0A041C
triadic
#040A1C #1C040A #0A1C04
tetradic
#040A1C #1C0416 #1C1604 #041C0A
square
#040A1C #1C0416 #1C1604 #041C0A
split-complementary
#040A1C #1C0A04 #161C04
monochromatic
#040A1B #040A1B #040A1C #0C1D52 #133087

Accessibility & contrast

On white

19.71
#040A1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A1C
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A1C#FFFFFF#000000##FFFFFF
##040A1C1.0019.711.0719.71
#FFFFFF19.711.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030C1D
Deuteranopia (green-blind)
#010A1C
Tritanopia (blue-blind)
#000E11
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040a1c;
/* rgb */ color: rgb(4, 10, 28);
/* oklch */ color: oklch(15.0% 0.041 264.7);
Tailwind
colors: {
  custom: {
    50: '#484b58',
    500: '#040a1c',
    950: '#000000',
  },
}
SCSS
$custom: #040a1c;
$custom-light: #484b58;
$custom-dark: #000000;
JSON
{
  "hex": "#040a1c",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 28
  },
  "hsl": {
    "h": 225,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.14987,
    "c": 0.0405,
    "h": 264.7
  },
  "luminance": 0.00327
}

Semantic roles & 50–950 ramp

primary
#040A1C
secondary
#5E4E1D
accent
#C336F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #040A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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