#040B29#040B29

#040B29 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.063 H 267.0°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#040B29
RGBrgb(4, 11, 41)
HSLhsl(229, 82%, 9%)
HSVhsv(229, 90%, 16%)
CMYKcmyk(90.2%, 73.2%, 0%, 83.9%)
CIE-LABlab(3.84, 6.79, -19.84)
CIE-LCHlch(3.84, 20.97, 288.88°)
OKLaboklab(16.57% -0.0033 -0.0625)
OKLCHoklch(16.57% 0.063 267)
XYZxyz(0.5698, 0.4252, 2.1494)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B29 #292204
analogous
#041E29 #040B29 #100429
triadic
#040B29 #29040B #0B2904
tetradic
#040B29 #29041E #292204 #042910
square
#040B29 #29041E #292204 #042910
split-complementary
#040B29 #291004 #1E2904
monochromatic
#03071C #03071C #040B29 #091A61 #0F2999

Accessibility & contrast

On white

19.35
#040B29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B29
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B29#FFFFFF#000000##FFFFFF
##040B291.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2A
Deuteranopia (green-blind)
#000C28
Tritanopia (blue-blind)
#001318
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040b29;
/* rgb */ color: rgb(4, 11, 41);
/* oklch */ color: oklch(16.6% 0.063 267.0);
Tailwind
colors: {
  custom: {
    50: '#494b63',
    500: '#040b29',
    950: '#000000',
  },
}
SCSS
$custom: #040b29;
$custom-light: #494b63;
$custom-dark: #000000;
JSON
{
  "hex": "#040b29",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 41
  },
  "hsl": {
    "h": 228.649,
    "s": 82.222,
    "l": 8.824
  },
  "oklch": {
    "l": 0.1657,
    "c": 0.0626,
    "h": 267
  },
  "luminance": 0.00425
}

Semantic roles & 50–950 ramp

primary
#040B29
secondary
#6C5D1D
accent
#D22FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040B29

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

Preview Lab → · Contrast checker → · Palette generator →

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