#040B25

Closest named color: Midnight (#03012D). oklch(16.1% 0.056 266.3), rgb(4, 11, 37).

Aa

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

About this color

#040B25 is a very dark, muted blue. In OKLCH its lightness is 16%, its chroma 0.056 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.038 away. White text reads best on it, at 19.44:1.

Hue familyBlues
Lightnessvery dark (16%)
Chromamuted (0.056)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.07:1
White text19.44:1

Values

HEX#040B25
RGBrgb(4, 11, 37)
HSLhsl(227, 80%, 8%)
OKLCHoklch(16.1% 0.056 266.3)

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 #040B25 19.44:1 AAA Lc -107.5 Preferred for body text
Black text on #040B25 1.07:1 Fails Lc 0.0 Not readable
#040B25 text on white 19.44:1 AAA Lc 105.5 Preferred for body text
#040B25 text on black 1.07: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

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CED9F2

    oklch(88.5% 0.036 266.7)

  4. Step 300

    300

    #ADC0EC

    oklch(80.8% 0.066 266.6)

  5. Step 400

    400

    #829FE3

    oklch(70.8% 0.105 266.1)

  6. Step 500

    500

    #6385DB

    oklch(63% 0.135 266.3)

  7. Step 600

    600

    #4B6DC8

    oklch(55.5% 0.146 266.3)

  8. Step 700

    700

    #3D5BAD

    oklch(49.2% 0.135 266.4)

  9. Step 800

    800

    #324B8C

    oklch(42.8% 0.112 266)

  10. Step 900

    900

    #2C3F70

    oklch(37.8% 0.087 266.3)

  11. Step 950

    950 (this color)

    #040B25

    oklch(16.1% 0.056 266.3)

Export this scale for Tailwind in the Tailwind colors tool

#040B25 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)#000F260.014
Deuteranopia (no green cones)#000B240.010
Tritanopia (no blue cones)#0011160.043
Achromatopsia (no color)#0D0D0D0.056

Harmonies

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

Complementary

The opposite hue (180°).

  • #040B25

    #040B25

    oklch(16.1% 0.056 266.3)

  • #140C00

    #140C00

    oklch(16.1% 0.033 84.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040B25

    #040B25

    oklch(16.1% 0.056 266.3)

  • #000F1A

    #000F1A

    oklch(16% 0.035 236.8)

  • #100722

    #100722

    oklch(16.1% 0.055 295.3)

Open the analogous palette in the generator

Split complementary

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

  • #040B25

    #040B25

    oklch(16.1% 0.056 266.3)

  • #1A0800

    #1A0800

    oklch(16.1% 0.04 55.2)

  • #0D0F00

    #0D0F00

    oklch(16.1% 0.036 115)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040B25

    #040B25

    oklch(16.1% 0.056 266.3)

  • #200202

    #200202

    oklch(15.9% 0.056 26.5)

  • #001302

    #001302

    oklch(16.2% 0.05 146)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040B25

    #040B25

    oklch(16.1% 0.056 266.3)

  • #1E020E

    #1E020E

    oklch(15.9% 0.056 355.7)

  • #140C00

    #140C00

    oklch(16.1% 0.033 84.4)

  • #00120D

    #00120D

    oklch(16.3% 0.031 174.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #040B25 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.