#040E26#040E26

#040E26 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.1% C 0.052 H 262.7°. Best body text is #FFFFFF at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#040E26
RGBrgb(4, 14, 38)
HSLhsl(222, 81%, 8%)
HSVhsv(222, 89%, 15%)
CMYKcmyk(89.5%, 63.2%, 0%, 85.1%)
CIE-LABlab(4.33, 4.13, -16.79)
CIE-LCHlch(4.33, 17.29, 283.82°)
OKLaboklab(17.06% -0.0066 -0.052)
OKLCHoklch(17.06% 0.052 262.7)
XYZxyz(0.5568, 0.4798, 1.8966)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E26 #261C04
analogous
#041F26 #040E26 #0B0426
triadic
#040E26 #26040E #0E2604
tetradic
#040E26 #26041F #261C04 #04260B
square
#040E26 #26041F #261C04 #04260B
split-complementary
#040E26 #260B04 #1F2604
monochromatic
#030A1C #030A1C #040E26 #0A225D #103795

Accessibility & contrast

On white

19.16
#040E26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040E26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E26
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E26#FFFFFF#000000##FFFFFF
##040E261.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031127
Deuteranopia (green-blind)
#000E26
Tritanopia (blue-blind)
#001418
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040e26;
/* rgb */ color: rgb(4, 14, 38);
/* oklch */ color: oklch(17.1% 0.052 262.7);
Tailwind
colors: {
  custom: {
    50: '#484d60',
    500: '#040e26',
    950: '#000000',
  },
}
SCSS
$custom: #040e26;
$custom-light: #484d60;
$custom-dark: #000000;
JSON
{
  "hex": "#040e26",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 38
  },
  "hsl": {
    "h": 222.353,
    "s": 80.952,
    "l": 8.235
  },
  "oklch": {
    "l": 0.17063,
    "c": 0.05245,
    "h": 262.7
  },
  "luminance": 0.0048
}

Semantic roles & 50–950 ramp

primary
#040E26
secondary
#69531D
accent
#BD30F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #040E26

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

Preview Lab → · Contrast checker → · Palette generator →

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