#040725

Closest named color: Midnight (#03012D). oklch(15.1% 0.062 270.5), rgb(4, 7, 37).

Aa

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

About this color

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

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

Values

HEX#040725
RGBrgb(4, 7, 37)
HSLhsl(235, 80%, 8%)
OKLCHoklch(15.1% 0.062 270.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 #040725 19.76:1 AAA Lc -107.6 Preferred for body text
Black text on #040725 1.06:1 Fails Lc 0.0 Not readable
#040725 text on white 19.76:1 AAA Lc 105.7 Preferred for body text
#040725 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

    #E4EAF9

    oklch(93.7% 0.021 268.4)

  3. Step 200

    200

    #CFD8F5

    oklch(88.4% 0.041 271.9)

  4. Step 300

    300

    #AEBFF1

    oklch(80.9% 0.073 270.1)

  5. Step 400

    400

    #859CEB

    oklch(70.7% 0.119 270.8)

  6. Step 500

    500

    #6781E4

    oklch(63% 0.152 270.5)

  7. Step 600

    600

    #5068D2

    oklch(55.5% 0.165 270.6)

  8. Step 700

    700

    #4156B6

    oklch(49% 0.153 270.5)

  9. Step 800

    800

    #364793

    oklch(42.7% 0.126 270.7)

  10. Step 900

    900

    #2E3C75

    oklch(37.6% 0.099 270.6)

  11. Step 950

    950 (this color)

    #040725

    oklch(15.1% 0.062 270.5)

Export this scale for Tailwind in the Tailwind colors tool

#040725 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)#000C260.018
Deuteranopia (no green cones)#0009240.012
Tritanopia (no blue cones)#000F140.051
Achromatopsia (no color)#0A0A0A0.063

Harmonies

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

Complementary

The opposite hue (180°).

  • #040725

    #040725

    oklch(15.1% 0.062 270.5)

  • #100B00

    #100B00

    oklch(15.2% 0.031 93.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040725

    #040725

    oklch(15.1% 0.062 270.5)

  • #000D18

    #000D18

    oklch(15.1% 0.034 238.7)

  • #100321

    #100321

    oklch(15% 0.064 300.4)

Open the analogous palette in the generator

Split complementary

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

  • #040725

    #040725

    oklch(15.1% 0.062 270.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.

  • #040725

    #040725

    oklch(15.1% 0.062 270.5)

  • #1E0100

    #1E0100

    oklch(15.1% 0.058 31.6)

  • #001003

    #001003

    oklch(15.1% 0.042 149.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040725

    #040725

    oklch(15.1% 0.062 270.5)

  • #1D000A

    #1D000A

    oklch(14.9% 0.061 359.9)

  • #100B00

    #100B00

    oklch(15.2% 0.031 93.2)

  • #000F0C

    #000F0C

    oklch(15.1% 0.027 181.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #040725 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.