#05071F

Closest named color: Midnight (#03012D). oklch(14.5% 0.051 273.4), rgb(5, 7, 31).

Aa

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

About this color

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

Hue familyBlues
Lightnessvery dark (15%)
Chromamuted (0.051)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.05:1
White text19.87:1

Values

HEX#05071F
RGBrgb(5, 7, 31)
HSLhsl(235, 72%, 7%)
OKLCHoklch(14.5% 0.051 273.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 #05071F 19.87:1 AAA Lc -107.7 Preferred for body text
Black text on #05071F 1.05:1 Fails Lc 0.0 Not readable
#05071F text on white 19.87:1 AAA Lc 105.8 Preferred for body text
#05071F text on black 1.05: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

    #E6E9F6

    oklch(93.6% 0.018 275.6)

  3. Step 200

    200

    #D2D8F0

    oklch(88.5% 0.034 274.5)

  4. Step 300

    300

    #B4BFE9

    oklch(81% 0.061 273.5)

  5. Step 400

    400

    #8D9CDD

    oklch(70.6% 0.097 273.7)

  6. Step 500

    500

    #7283D4

    oklch(63.2% 0.123 273.4)

  7. Step 600

    600

    #5B6BC1

    oklch(55.6% 0.134 273.4)

  8. Step 700

    700

    #4B59A7

    oklch(49.2% 0.125 273.3)

  9. Step 800

    800

    #3D4987

    oklch(42.7% 0.103 273)

  10. Step 900

    900

    #343D6C

    oklch(37.6% 0.081 273.7)

  11. Step 950

    950 (this color)

    #05071F

    oklch(14.5% 0.051 273.4)

Export this scale for Tailwind in the Tailwind colors tool

#05071F 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)#000B200.018
Deuteranopia (no green cones)#00081F0.014
Tritanopia (no blue cones)#000D110.044
Achromatopsia (no color)#0909090.051

Harmonies

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

Complementary

The opposite hue (180°).

  • #05071F

    #05071F

    oklch(14.5% 0.051 273.4)

  • #0E0A00

    #0E0A00

    oklch(14.6% 0.03 96)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #05071F

    #05071F

    oklch(14.5% 0.051 273.4)

  • #000B18

    #000B18

    oklch(14.5% 0.036 245)

  • #0F041B

    #0F041B

    oklch(14.5% 0.051 304.2)

Open the analogous palette in the generator

Split complementary

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

  • #05071F

    #05071F

    oklch(14.5% 0.051 273.4)

  • #130700

    #130700

    oklch(14.5% 0.032 65.4)

  • #070C00

    #070C00

    oklch(14.3% 0.036 124)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #05071F

    #05071F

    oklch(14.5% 0.051 273.4)

  • #1B0200

    #1B0200

    oklch(14.6% 0.051 35)

  • #000E04

    #000E04

    oklch(14.4% 0.036 153.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #05071F

    #05071F

    oklch(14.5% 0.051 273.4)

  • #1A0108

    #1A0108

    oklch(14.4% 0.053 2.8)

  • #0E0A00

    #0E0A00

    oklch(14.6% 0.03 96)

  • #000E0B

    #000E0B

    oklch(14.7% 0.027 180.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #05071F 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.