#040E29#040E29

#040E29 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.4% C 0.058 H 263.8°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#040E29
RGBrgb(4, 14, 41)
HSLhsl(224, 82%, 9%)
HSVhsv(224, 90%, 16%)
CMYKcmyk(90.2%, 65.9%, 0%, 83.9%)
CIE-LABlab(4.52, 5.41, -18.79)
CIE-LCHlch(4.52, 19.55, 286.06°)
OKLaboklab(17.36% -0.0062 -0.0575)
OKLCHoklch(17.36% 0.058 263.8)
XYZxyz(0.6072, 0.4999, 2.1619)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E29 #291F04
analogous
#042129 #040E29 #0D0429
triadic
#040E29 #29040E #0E2904
tetradic
#040E29 #290421 #291F04 #04290D
square
#040E29 #290421 #291F04 #04290D
split-complementary
#040E29 #290D04 #212904
monochromatic
#030A1C #030A1C #040E29 #092161 #0F3499

Accessibility & contrast

On white

19.09
#040E29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E29
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E29#FFFFFF#000000##FFFFFF
##040E291.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01112A
Deuteranopia (green-blind)
#000E28
Tritanopia (blue-blind)
#001519
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040e29;
/* rgb */ color: rgb(4, 14, 41);
/* oklch */ color: oklch(17.4% 0.058 263.8);
Tailwind
colors: {
  custom: {
    50: '#494d63',
    500: '#040e29',
    950: '#000000',
  },
}
SCSS
$custom: #040e29;
$custom-light: #494d63;
$custom-dark: #000000;
JSON
{
  "hex": "#040e29",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 41
  },
  "hsl": {
    "h": 223.784,
    "s": 82.222,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17355,
    "c": 0.0578,
    "h": 263.8
  },
  "luminance": 0.005
}

Semantic roles & 50–950 ramp

primary
#040E29
secondary
#6C561D
accent
#C22FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040E29

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

Preview Lab → · Contrast checker → · Palette generator →

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