#040F26#040F26

#040F26 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.3% C 0.051 H 261.2°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#040F26
RGBrgb(4, 15, 38)
HSLhsl(221, 81%, 8%)
HSVhsv(221, 89%, 15%)
CMYKcmyk(89.5%, 60.5%, 0%, 85.1%)
CIE-LABlab(4.58, 3.62, -16.40)
CIE-LCHlch(4.58, 16.79, 282.46°)
OKLaboklab(17.35% -0.0078 -0.0503)
OKLCHoklch(17.35% 0.051 261.2)
XYZxyz(0.5706, 0.5073, 1.9012)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F26 #261B04
analogous
#042026 #040F26 #0A0426
triadic
#040F26 #26040F #0F2604
tetradic
#040F26 #260420 #261B04 #04260A
square
#040F26 #260420 #261B04 #04260A
split-complementary
#040F26 #260A04 #202604
monochromatic
#030B1C #030B1C #040F26 #0A255D #103B95

Accessibility & contrast

On white

19.07
#040F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F26
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F26#FFFFFF#000000##FFFFFF
##040F261.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041127
Deuteranopia (green-blind)
#000E26
Tritanopia (blue-blind)
#001418
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040f26;
/* rgb */ color: rgb(4, 15, 38);
/* oklch */ color: oklch(17.3% 0.051 261.2);
Tailwind
colors: {
  custom: {
    50: '#484e60',
    500: '#040f26',
    950: '#000000',
  },
}
SCSS
$custom: #040f26;
$custom-light: #484e60;
$custom-dark: #000000;
JSON
{
  "hex": "#040f26",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 38
  },
  "hsl": {
    "h": 220.588,
    "s": 80.952,
    "l": 8.235
  },
  "oklch": {
    "l": 0.17345,
    "c": 0.05087,
    "h": 261.2
  },
  "luminance": 0.00507
}

Semantic roles & 50–950 ramp

primary
#040F26
secondary
#69501D
accent
#B730F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #040F26

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

Preview Lab → · Contrast checker → · Palette generator →

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