#040822#040822

#040822 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 15.0% C 0.055 H 269.5°. Best body text is #FFFFFF at 19.76:1 contrast (WCAG AA passes).

Color values

HEX#040822
RGBrgb(4, 8, 34)
HSLhsl(232, 79%, 7%)
HSVhsv(232, 88%, 13%)
CMYKcmyk(88.2%, 76.5%, 0%, 86.7%)
CIE-LABlab(2.84, 5.17, -16.00)
CIE-LCHlch(2.84, 16.81, 287.91°)
OKLaboklab(15.01% -0.0005 -0.0553)
OKLCHoklch(15.01% 0.055 269.5)
XYZxyz(0.4255, 0.3149, 1.5514)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040822 #221E04
analogous
#041722 #040822 #0F0422
triadic
#040822 #220408 #082204
tetradic
#040822 #220417 #221E04 #04220F
square
#040822 #220417 #221E04 #04220F
split-complementary
#040822 #220F04 #172204
monochromatic
#03061B #03061B #040822 #0A1559 #112290

Accessibility & contrast

On white

19.76
#040822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040822 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040822
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040822#FFFFFF#000000##FFFFFF
##0408221.0019.761.0619.76
#FFFFFF19.761.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C23
Deuteranopia (green-blind)
#000921
Tritanopia (blue-blind)
#000E13
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040822;
/* rgb */ color: rgb(4, 8, 34);
/* oklch */ color: oklch(15.0% 0.055 269.5);
Tailwind
colors: {
  custom: {
    50: '#484a5d',
    500: '#040822',
    950: '#000000',
  },
}
SCSS
$custom: #040822;
$custom-light: #484a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#040822",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 34
  },
  "hsl": {
    "h": 232,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.15008,
    "c": 0.05527,
    "h": 269.5
  },
  "luminance": 0.00315
}

Semantic roles & 50–950 ramp

primary
#040822
secondary
#655B1D
accent
#DB32F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040822

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

Preview Lab → · Contrast checker → · Palette generator →

#040822 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva