#04051E

Closest named color: Midnight (#03012D). oklch(13.6% 0.054 273.9), rgb(4, 5, 30).

Aa

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

About this color

#04051E is a very dark, muted blue. In OKLCH its lightness is 14%, its chroma 0.054 and its hue 274°. 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 20.08:1.

Hue familyBlues
Lightnessvery dark (14%)
Chromamuted (0.054)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.04:1
White text20.08:1

Values

HEX#04051E
RGBrgb(4, 5, 30)
HSLhsl(238, 76%, 7%)
OKLCHoklch(13.6% 0.054 273.9)

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 #04051E 20.08:1 AAA Lc -107.7 Preferred for body text
Black text on #04051E 1.04:1 Fails Lc 0.0 Not readable
#04051E text on white 20.08:1 AAA Lc 105.8 Preferred for body text
#04051E text on black 1.04: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

    #E6E9F7

    oklch(93.6% 0.019 276.3)

  3. Step 200

    200

    #D1D8F2

    oklch(88.5% 0.037 273.7)

  4. Step 300

    300

    #B3BEEB

    oklch(80.8% 0.065 274.1)

  5. Step 400

    400

    #8C9CE1

    oklch(70.7% 0.103 273.5)

  6. Step 500

    500

    #7182D9

    oklch(63.2% 0.132 273.7)

  7. Step 600

    600

    #5A69C6

    oklch(55.5% 0.144 273.9)

  8. Step 700

    700

    #4A57AB

    oklch(49% 0.134 273.8)

  9. Step 800

    800

    #3D488B

    oklch(42.8% 0.111 273.8)

  10. Step 900

    900

    #343D6F

    oklch(37.8% 0.086 273.9)

  11. Step 950

    950 (this color)

    #04051E

    oklch(13.6% 0.054 273.9)

Export this scale for Tailwind in the Tailwind colors tool

#04051E 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)#00091F0.018
Deuteranopia (no green cones)#00071D0.014
Tritanopia (no blue cones)#000B100.044
Achromatopsia (no color)#0808080.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #04051E

    #04051E

    oklch(13.6% 0.054 273.9)

  • #0C0800

    #0C0800

    oklch(13.6% 0.028 94.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04051E

    #04051E

    oklch(13.6% 0.054 273.9)

  • #000915

    #000915

    oklch(13.5% 0.034 245.2)

  • #0D021A

    #0D021A

    oklch(13.4% 0.056 303.7)

Open the analogous palette in the generator

Split complementary

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

  • #04051E

    #04051E

    oklch(13.6% 0.054 273.9)

  • #110600

    #110600

    oklch(13.8% 0.031 65.2)

  • #060A00

    #060A00

    oklch(13.5% 0.033 123.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04051E

    #04051E

    oklch(13.6% 0.054 273.9)

  • #180100

    #180100

    oklch(13.5% 0.05 32.6)

  • #000C03

    #000C03

    oklch(13.5% 0.035 152.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04051E

    #04051E

    oklch(13.6% 0.054 273.9)

  • #180006

    #180006

    oklch(13.5% 0.054 3.9)

  • #0C0800

    #0C0800

    oklch(13.6% 0.028 94.2)

  • #000B09

    #000B09

    oklch(13.4% 0.024 183.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04051E 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.