#040F29#040F29

#040F29 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.6% C 0.056 H 262.6°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#040F29
RGBrgb(4, 15, 41)
HSLhsl(222, 82%, 9%)
HSVhsv(222, 90%, 16%)
CMYKcmyk(90.2%, 63.4%, 0%, 83.9%)
CIE-LABlab(4.76, 4.90, -18.39)
CIE-LCHlch(4.76, 19.04, 284.92°)
OKLaboklab(17.63% -0.0072 -0.0557)
OKLCHoklch(17.63% 0.056 262.6)
XYZxyz(0.6210, 0.5275, 2.1665)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F29 #291E04
analogous
#042229 #040F29 #0C0429
triadic
#040F29 #29040F #0F2904
tetradic
#040F29 #290422 #291E04 #04290C
square
#040F29 #290422 #291E04 #04290C
split-complementary
#040F29 #290C04 #222904
monochromatic
#030A1C #030A1C #040F29 #092361 #0F3899

Accessibility & contrast

On white

18.99
#040F29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040F29 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F29
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F29#FFFFFF#000000##FFFFFF
##040F291.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02122A
Deuteranopia (green-blind)
#000F28
Tritanopia (blue-blind)
#00151A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040f29;
/* rgb */ color: rgb(4, 15, 41);
/* oklch */ color: oklch(17.6% 0.056 262.6);
Tailwind
colors: {
  custom: {
    50: '#494e63',
    500: '#040f29',
    950: '#000000',
  },
}
SCSS
$custom: #040f29;
$custom-light: #494e63;
$custom-dark: #000000;
JSON
{
  "hex": "#040f29",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 41
  },
  "hsl": {
    "h": 222.162,
    "s": 82.222,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17628,
    "c": 0.05621,
    "h": 262.6
  },
  "luminance": 0.00528
}

Semantic roles & 50–950 ramp

primary
#040F29
secondary
#6C541D
accent
#BD2FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040F29

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

Preview Lab → · Contrast checker → · Palette generator →

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