#040C26#040C26

#040C26 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.5% C 0.056 H 265.4°. Best body text is #FFFFFF at 19.34:1 contrast (WCAG AA passes).

Color values

HEX#040C26
RGBrgb(4, 12, 38)
HSLhsl(226, 81%, 8%)
HSVhsv(226, 89%, 15%)
CMYKcmyk(89.5%, 68.4%, 0%, 85.1%)
CIE-LABlab(3.87, 5.08, -17.51)
CIE-LCHlch(3.87, 18.23, 286.17°)
OKLaboklab(16.52% -0.0045 -0.0555)
OKLCHoklch(16.52% 0.056 265.4)
XYZxyz(0.5313, 0.4286, 1.8881)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C26 #261E04
analogous
#041D26 #040C26 #0D0426
triadic
#040C26 #26040C #0C2604
tetradic
#040C26 #26041D #261E04 #04260D
square
#040C26 #26041D #261E04 #04260D
split-complementary
#040C26 #260D04 #1D2604
monochromatic
#03091C #03091C #040C26 #0A1D5D #102F95

Accessibility & contrast

On white

19.34
#040C26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040C26
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C26#FFFFFF#000000##FFFFFF
##040C261.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F27
Deuteranopia (green-blind)
#000C25
Tritanopia (blue-blind)
#001217
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040c26;
/* rgb */ color: rgb(4, 12, 38);
/* oklch */ color: oklch(16.5% 0.056 265.4);
Tailwind
colors: {
  custom: {
    50: '#484c60',
    500: '#040c26',
    950: '#000000',
  },
}
SCSS
$custom: #040c26;
$custom-light: #484c60;
$custom-dark: #000000;
JSON
{
  "hex": "#040c26",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 38
  },
  "hsl": {
    "h": 225.882,
    "s": 80.952,
    "l": 8.235
  },
  "oklch": {
    "l": 0.16515,
    "c": 0.05569,
    "h": 265.4
  },
  "luminance": 0.00429
}

Semantic roles & 50–950 ramp

primary
#040C26
secondary
#69571D
accent
#C930F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #040C26

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

Preview Lab → · Contrast checker → · Palette generator →

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