#040B23#040B23

#040B23 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.9% C 0.052 H 265.8°. Best body text is #FFFFFF at 19.49:1 contrast (WCAG AA passes).

Color values

HEX#040B23
RGBrgb(4, 11, 35)
HSLhsl(226, 79%, 8%)
HSVhsv(226, 89%, 14%)
CMYKcmyk(88.6%, 68.6%, 0%, 86.3%)
CIE-LABlab(3.49, 4.33, -15.78)
CIE-LCHlch(3.49, 16.36, 285.34°)
OKLaboklab(15.94% -0.0038 -0.0518)
OKLCHoklch(15.94% 0.052 265.8)
XYZxyz(0.4730, 0.3865, 1.6394)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B23 #231C04
analogous
#041A23 #040B23 #0D0423
triadic
#040B23 #23040B #0B2304
tetradic
#040B23 #23041A #231C04 #04230D
square
#040B23 #23041A #231C04 #04230D
split-complementary
#040B23 #230D04 #1A2304
monochromatic
#03091B #03091B #040B23 #0A1C5A #112E91

Accessibility & contrast

On white

19.49
#040B23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040B23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B23
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B23#FFFFFF#000000##FFFFFF
##040B231.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010E24
Deuteranopia (green-blind)
#000B23
Tritanopia (blue-blind)
#001115
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040b23;
/* rgb */ color: rgb(4, 11, 35);
/* oklch */ color: oklch(15.9% 0.052 265.8);
Tailwind
colors: {
  custom: {
    50: '#484c5e',
    500: '#040b23',
    950: '#000000',
  },
}
SCSS
$custom: #040b23;
$custom-light: #484c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#040b23",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 35
  },
  "hsl": {
    "h": 226.452,
    "s": 79.487,
    "l": 7.647
  },
  "oklch": {
    "l": 0.15942,
    "c": 0.05191,
    "h": 265.8
  },
  "luminance": 0.00387
}

Semantic roles & 50–950 ramp

primary
#040B23
secondary
#66551D
accent
#CA32F6
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040B23

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

Preview Lab → · Contrast checker → · Palette generator →

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