#04010E

Closest named color: Midnight (#03012D). oklch(9.7% 0.041 295.1), rgb(4, 1, 14).

Aa

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

About this color

#04010E is a very dark, muted purple. In OKLCH its lightness is 10%, its chroma 0.041 and its hue 295°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.070 away. White text reads best on it, at 20.67:1.

Hue familyPurples
Lightnessvery dark (10%)
Chromamuted (0.041)
Temperaturein between
Nearest nameMidnight (#03012D)
Black text1.01:1
White text20.67:1

Values

HEX#04010E
RGBrgb(4, 1, 14)
HSLhsl(254, 87%, 3%)
OKLCHoklch(9.7% 0.041 295.1)

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 #04010E 20.67:1 AAA Lc -107.9 Preferred for body text
Black text on #04010E 1.01:1 Fails Lc 0.0 Not readable
#04010E text on white 20.67:1 AAA Lc 106.0 Preferred for body text
#04010E text on black 1.01: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

    #F6F5F9

    oklch(97.2% 0.005 297.7)

  2. Step 100

    100

    #EAE8F2

    oklch(93.5% 0.014 295.3)

  3. Step 200

    200

    #DAD6EA

    oklch(88.5% 0.028 295)

  4. Step 300

    300

    #C2BBDD

    oklch(80.9% 0.048 294.7)

  5. Step 400

    400

    #A497CC

    oklch(70.7% 0.078 295.6)

  6. Step 500

    500

    #8E7DBF

    oklch(63.1% 0.099 295.3)

  7. Step 600

    600

    #7865AB

    oklch(55.5% 0.108 295.2)

  8. Step 700

    700

    #655493

    oklch(49.1% 0.1 294.9)

  9. Step 800

    800

    #534577

    oklch(42.7% 0.082 295.6)

  10. Step 900

    900

    #443A60

    oklch(37.6% 0.065 295.2)

  11. Step 950

    950 (this color)

    #04010E

    oklch(9.7% 0.041 295.1)

Export this scale for Tailwind in the Tailwind colors tool

#04010E 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)#00030F0.026
Deuteranopia (no green cones)#00020E0.024
Tritanopia (no blue cones)#0203050.034
Achromatopsia (no color)#0303030.041

Harmonies

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

Complementary

The opposite hue (180°).

  • #04010E

    #04010E

    oklch(9.7% 0.041 295.1)

  • #030400

    #030400

    oklch(10.1% 0.023 118.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04010E

    #04010E

    oklch(9.7% 0.041 295.1)

  • #000210

    #000210

    oklch(9.6% 0.043 261.6)

  • #080009

    #080009

    oklch(9.5% 0.044 325.5)

Open the analogous palette in the generator

Split complementary

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

  • #04010E

    #04010E

    oklch(9.7% 0.041 295.1)

  • #050300

    #050300

    oklch(9.9% 0.02 90.1)

  • #000500

    #000500

    oklch(10% 0.034 142.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04010E

    #04010E

    oklch(9.7% 0.041 295.1)

  • #080200

    #080200

    oklch(10% 0.024 56.9)

  • #000403

    #000403

    oklch(9.6% 0.017 179.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04010E

    #04010E

    oklch(9.7% 0.041 295.1)

  • #0C0000

    #0C0000

    oklch(9.7% 0.04 29.2)

  • #030400

    #030400

    oklch(10.1% 0.023 118.1)

  • #000405

    #000405

    oklch(9.8% 0.017 208)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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