#040C23

Closest named color: Rich Navy (#001219). oklch(16.2% 0.05 264.4), rgb(4, 12, 35).

Aa

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

About this color

#040C23 is a very dark, muted blue. In OKLCH its lightness is 16%, its chroma 0.050 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.035 away. White text reads best on it, at 19.40:1.

Hue familyBlues
Lightnessvery dark (16%)
Chromamuted (0.050)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.08:1
White text19.40:1

Values

HEX#040C23
RGBrgb(4, 12, 35)
HSLhsl(225, 79%, 8%)
OKLCHoklch(16.2% 0.05 264.4)

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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E4EAF6

    oklch(93.6% 0.017 264.5)

  3. Step 200

    200

    #CED9F0

    oklch(88.4% 0.034 265.2)

  4. Step 300

    300

    #AEC1E8

    oklch(81% 0.059 264.6)

  5. Step 400

    400

    #83A0DD

    oklch(70.8% 0.096 264.5)

  6. Step 500

    500

    #6487D3

    oklch(63.1% 0.122 264.4)

  7. Step 600

    600

    #4B6FC0

    oklch(55.5% 0.133 264.4)

  8. Step 700

    700

    #3D5DA6

    oklch(49.1% 0.123 264.5)

  9. Step 800

    800

    #324C86

    oklch(42.6% 0.102 264.3)

  10. Step 900

    900

    #2C406C

    oklch(37.7% 0.08 264.4)

  11. Step 950

    950 (this color)

    #040C23

    oklch(16.2% 0.05 264.4)

Export this scale for Tailwind in the Tailwind colors tool

#040C23 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)#020F240.011
Deuteranopia (no green cones)#000C230.009
Tritanopia (no blue cones)#0011150.040
Achromatopsia (no color)#0D0D0D0.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #040C23

    #040C23

    oklch(16.2% 0.05 264.4)

  • #140C00

    #140C00

    oklch(16.1% 0.033 84.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040C23

    #040C23

    oklch(16.2% 0.05 264.4)

  • #00101A

    #00101A

    oklch(16.3% 0.034 233.4)

  • #100821

    #100821

    oklch(16.3% 0.051 295.1)

Open the analogous palette in the generator

Split complementary

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

  • #040C23

    #040C23

    oklch(16.2% 0.05 264.4)

  • #1B0800

    #1B0800

    oklch(16.3% 0.041 53.6)

  • #0E0F00

    #0E0F00

    oklch(16.2% 0.036 112.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040C23

    #040C23

    oklch(16.2% 0.05 264.4)

  • #1F0404

    #1F0404

    oklch(16.3% 0.05 24.5)

  • #001301

    #001301

    oklch(16.2% 0.052 144.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040C23

    #040C23

    oklch(16.2% 0.05 264.4)

  • #1D040F

    #1D040F

    oklch(16.3% 0.049 354.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 #040C23, closest first.

Similar named colors

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

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