#040B22#040B22

#040B22 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.8% C 0.050 H 265.5°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#040B22
RGBrgb(4, 11, 34)
HSLhsl(226, 79%, 7%)
HSVhsv(226, 88%, 13%)
CMYKcmyk(88.2%, 67.6%, 0%, 86.7%)
CIE-LABlab(3.44, 3.96, -15.09)
CIE-LCHlch(3.44, 15.60, 284.70°)
OKLaboklab(15.84% -0.0039 -0.0499)
OKLCHoklch(15.84% 0.05 265.5)
XYZxyz(0.4584, 0.3806, 1.5624)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B22 #221B04
analogous
#041A22 #040B22 #0C0422
triadic
#040B22 #22040B #0B2204
tetradic
#040B22 #22041A #221B04 #04220C
square
#040B22 #22041A #221B04 #04220C
split-complementary
#040B22 #220C04 #1A2204
monochromatic
#03091B #03091B #040B22 #0A1D59 #112E90

Accessibility & contrast

On white

19.51
#040B22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B22
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B22#FFFFFF#000000##FFFFFF
##040B221.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010E23
Deuteranopia (green-blind)
#000B22
Tritanopia (blue-blind)
#001014
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040b22;
/* rgb */ color: rgb(4, 11, 34);
/* oklch */ color: oklch(15.8% 0.050 265.5);
Tailwind
colors: {
  custom: {
    50: '#484c5d',
    500: '#040b22',
    950: '#000000',
  },
}
SCSS
$custom: #040b22;
$custom-light: #484c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#040b22",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 34
  },
  "hsl": {
    "h": 226,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.15842,
    "c": 0.05008,
    "h": 265.5
  },
  "luminance": 0.00381
}

Semantic roles & 50–950 ramp

primary
#040B22
secondary
#65541D
accent
#C832F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040B22

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

Preview Lab → · Contrast checker → · Palette generator →

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