#040D22#040D22

#040D22 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.4% C 0.047 H 262.3°. Best body text is #FFFFFF at 19.34:1 contrast (WCAG AA passes).

Color values

HEX#040D22
RGBrgb(4, 13, 34)
HSLhsl(222, 79%, 7%)
HSVhsv(222, 88%, 13%)
CMYKcmyk(88.2%, 61.8%, 0%, 86.7%)
CIE-LABlab(3.88, 3.06, -14.42)
CIE-LCHlch(3.88, 14.74, 281.99°)
OKLaboklab(16.41% -0.0063 -0.0464)
OKLCHoklch(16.41% 0.047 262.3)
XYZxyz(0.4826, 0.4291, 1.5705)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D22 #221904
analogous
#041C22 #040D22 #0A0422
triadic
#040D22 #22040D #0D2204
tetradic
#040D22 #22041C #221904 #04220A
square
#040D22 #22041C #221904 #04220A
split-complementary
#040D22 #220A04 #1C2204
monochromatic
#030A1B #030A1B #040D22 #0A2259 #113790

Accessibility & contrast

On white

19.34
#040D22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D22
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D22#FFFFFF#000000##FFFFFF
##040D221.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040F23
Deuteranopia (green-blind)
#010C22
Tritanopia (blue-blind)
#001215
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040d22;
/* rgb */ color: rgb(4, 13, 34);
/* oklch */ color: oklch(16.4% 0.047 262.3);
Tailwind
colors: {
  custom: {
    50: '#484d5d',
    500: '#040d22',
    950: '#000000',
  },
}
SCSS
$custom: #040d22;
$custom-light: #484d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#040d22",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 34
  },
  "hsl": {
    "h": 222,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.16406,
    "c": 0.0468,
    "h": 262.3
  },
  "luminance": 0.00429
}

Semantic roles & 50–950 ramp

primary
#040D22
secondary
#654F1D
accent
#BB32F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040D22

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

Preview Lab → · Contrast checker → · Palette generator →

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