#05041D

Closest named color: Midnight (#03012D). oklch(13.3% 0.055 278.5), rgb(5, 4, 29).

Aa

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

About this color

#05041D is a very dark, muted blue. In OKLCH its lightness is 13%, its chroma 0.055 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.036 away. White text reads best on it, at 20.16:1.

Hue familyBlues
Lightnessvery dark (13%)
Chromamuted (0.055)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.04:1
White text20.16:1

Values

HEX#05041D
RGBrgb(5, 4, 29)
HSLhsl(242, 76%, 6%)
OKLCHoklch(13.3% 0.055 278.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 #05041D 20.16:1 AAA Lc -107.7 Preferred for body text
Black text on #05041D 1.04:1 Fails Lc 0.0 Not readable
#05041D text on white 20.16:1 AAA Lc 105.8 Preferred for body text
#05041D 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

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E7E9F7

    oklch(93.7% 0.019 279.5)

  3. Step 200

    200

    #D3D7F1

    oklch(88.4% 0.036 278.7)

  4. Step 300

    300

    #B7BDEB

    oklch(80.9% 0.065 279)

  5. Step 400

    400

    #929AE1

    oklch(70.8% 0.104 278.4)

  6. Step 500

    500

    #787FD8

    oklch(63% 0.133 278.4)

  7. Step 600

    600

    #6267C5

    oklch(55.6% 0.143 278.3)

  8. Step 700

    700

    #5255AB

    oklch(49.2% 0.135 278.7)

  9. Step 800

    800

    #43468A

    oklch(42.7% 0.111 278.7)

  10. Step 900

    900

    #383B6E

    oklch(37.6% 0.086 278.8)

  11. Step 950

    950 (this color)

    #05041D

    oklch(13.3% 0.055 278.5)

Export this scale for Tailwind in the Tailwind colors tool

#05041D 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)#00081E0.021
Deuteranopia (no green cones)#00061C0.018
Tritanopia (no blue cones)#00090E0.046
Achromatopsia (no color)#0707070.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #05041D

    #05041D

    oklch(13.3% 0.055 278.5)

  • #0A0800

    #0A0800

    oklch(13.3% 0.028 101.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #05041D

    #05041D

    oklch(13.3% 0.055 278.5)

  • #000815

    #000815

    oklch(13.1% 0.036 248.4)

  • #0E0218

    #0E0218

    oklch(13.3% 0.054 308.6)

Open the analogous palette in the generator

Split complementary

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

  • #05041D

    #05041D

    oklch(13.3% 0.055 278.5)

  • #0F0600

    #0F0600

    oklch(13.4% 0.029 71.2)

  • #040A00

    #040A00

    oklch(13.2% 0.035 129.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #05041D

    #05041D

    oklch(13.3% 0.055 278.5)

  • #150200

    #150200

    oklch(13.1% 0.043 37.7)

  • #000B04

    #000B04

    oklch(13.2% 0.031 158.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #05041D

    #05041D

    oklch(13.3% 0.055 278.5)

  • #180004

    #180004

    oklch(13.4% 0.053 10.5)

  • #0A0800

    #0A0800

    oklch(13.3% 0.028 101.8)

  • #000A09

    #000A09

    oklch(13.1% 0.023 188.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #05041D 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.