#040822

Closest named color: Midnight (#03012D). oklch(15% 0.055 269.5), rgb(4, 8, 34).

Aa

White text reads best on this color (19.75:1).

About this color

#040822 is a very dark, muted blue. In OKLCH its lightness is 15%, its chroma 0.055 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.034 away. White text reads best on it, at 19.75:1.

Hue familyBlues
Lightnessvery dark (15%)
Chromamuted (0.055)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.06:1
White text19.75:1

Values

HEX#040822
RGBrgb(4, 8, 34)
HSLhsl(232, 79%, 7%)
OKLCHoklch(15% 0.055 269.5)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #040822 19.75:1 AAA Lc -107.6 Preferred for body text
Black text on #040822 1.06:1 Fails Lc 0.0 Not readable
#040822 text on white 19.75:1 AAA Lc 105.7 Preferred for body text
#040822 text on black 1.06:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.

  1. Step 50

    50

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E5EAF7

    oklch(93.7% 0.018 269.1)

  3. Step 200

    200

    #CFD9F2

    oklch(88.5% 0.036 268.3)

  4. Step 300

    300

    #B0BFEC

    oklch(80.9% 0.066 270.5)

  5. Step 400

    400

    #869DE2

    oklch(70.6% 0.105 269.5)

  6. Step 500

    500

    #6984DA

    oklch(63.1% 0.133 269.2)

  7. Step 600

    600

    #526CC8

    oklch(55.7% 0.145 269.4)

  8. Step 700

    700

    #4359AD

    oklch(49.1% 0.136 269.8)

  9. Step 800

    800

    #37498C

    oklch(42.7% 0.113 269.8)

  10. Step 900

    900

    #2F3E70

    oklch(37.7% 0.088 269.3)

  11. Step 950

    950 (this color)

    #040822

    oklch(15% 0.055 269.5)

Export this scale for Tailwind in the Tailwind colors tool

#040822 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#000C230.015
Deuteranopia (no green cones)#0009210.011
Tritanopia (no blue cones)#000E130.044
Achromatopsia (no color)#0A0A0A0.056

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #040822

    #040822

    oklch(15% 0.055 269.5)

  • #100A00

    #100A00

    oklch(14.9% 0.03 89.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040822

    #040822

    oklch(15% 0.055 269.5)

  • #000D18

    #000D18

    oklch(15.1% 0.034 238.7)

  • #0F051F

    #0F051F

    oklch(15.2% 0.055 298.4)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #040822

    #040822

    oklch(15% 0.055 269.5)

  • #160700

    #160700

    oklch(15% 0.036 58.6)

  • #090D00

    #090D00

    oklch(14.9% 0.036 120.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040822

    #040822

    oklch(15% 0.055 269.5)

  • #1D0101

    #1D0101

    oklch(14.9% 0.056 27.5)

  • #001003

    #001003

    oklch(15.1% 0.042 149.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040822

    #040822

    oklch(15% 0.055 269.5)

  • #1C010A

    #1C010A

    oklch(15% 0.056 0.4)

  • #100A00

    #100A00

    oklch(14.9% 0.03 89.1)

  • #000F0B

    #000F0B

    oklch(15.1% 0.028 177)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #040822, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #040822 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.