#040F2B

Closest named color: Dark Navy (#000435). oklch(17.8% 0.06 263.3), rgb(4, 15, 43).

Aa

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

About this color

#040F2B is a very dark, muted blue. In OKLCH its lightness is 18%, its chroma 0.060 and its hue 263°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Navy (#000435), ΔE 0.040 away. White text reads best on it, at 18.94:1.

Hue familyBlues
Lightnessvery dark (18%)
Chromamuted (0.060)
Temperaturecool
Nearest nameDark Navy (#000435)
Black text1.10:1
White text18.94:1

Values

HEX#040F2B
RGBrgb(4, 15, 43)
HSLhsl(223, 83%, 9%)
OKLCHoklch(17.8% 0.06 263.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 #040F2B 18.94:1 AAA Lc -107.3 Preferred for body text
Black text on #040F2B 1.10:1 Fails Lc 0.0 Not readable
#040F2B text on white 18.94:1 AAA Lc 105.2 Preferred for body text
#040F2B text on black 1.10: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

    #F2F6FC

    oklch(97.2% 0.009 258.3)

  2. Step 100

    100

    #E3EAF8

    oklch(93.6% 0.02 264.5)

  3. Step 200

    200

    #CCDAF4

    oklch(88.6% 0.039 262.9)

  4. Step 300

    300

    #A9C1EF

    oklch(80.9% 0.07 263.3)

  5. Step 400

    400

    #7BA0E7

    oklch(70.7% 0.112 262.8)

  6. Step 500

    500

    #5A86E0

    oklch(63.1% 0.144 263.2)

  7. Step 600

    600

    #416ECE

    oklch(55.7% 0.157 263.3)

  8. Step 700

    700

    #335BB2

    oklch(49% 0.146 263.4)

  9. Step 800

    800

    #2A4B90

    oklch(42.7% 0.121 263.1)

  10. Step 900

    900

    #263F73

    oklch(37.6% 0.094 263.2)

  11. Step 950

    950 (this color)

    #040F2B

    oklch(17.8% 0.06 263.3)

Export this scale for Tailwind in the Tailwind colors tool

#040F2B 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)#01132C0.013
Deuteranopia (no green cones)#000F2A0.008
Tritanopia (no blue cones)#00161B0.047
Achromatopsia (no color)#1111110.060

Harmonies

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

Complementary

The opposite hue (180°).

  • #040F2B

    #040F2B

    oklch(17.8% 0.06 263.3)

  • #190F00

    #190F00

    oklch(17.7% 0.037 81.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040F2B

    #040F2B

    oklch(17.8% 0.06 263.3)

  • #00141F

    #00141F

    oklch(18% 0.037 232.6)

  • #130A28

    #130A28

    oklch(17.8% 0.059 293.3)

Open the analogous palette in the generator

Split complementary

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

  • #040F2B

    #040F2B

    oklch(17.8% 0.06 263.3)

  • #200A00

    #200A00

    oklch(17.8% 0.045 52.3)

  • #111300

    #111300

    oklch(17.8% 0.04 114.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040F2B

    #040F2B

    oklch(17.8% 0.06 263.3)

  • #260405

    #260405

    oklch(17.9% 0.059 23.2)

  • #001701

    #001701

    oklch(17.8% 0.058 143.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040F2B

    #040F2B

    oklch(17.8% 0.06 263.3)

  • #230413

    #230413

    oklch(17.8% 0.058 353.5)

  • #190F00

    #190F00

    oklch(17.7% 0.037 81.6)

  • #001610

    #001610

    oklch(17.9% 0.034 173.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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