#04050F

Closest named color: Almost Black (#070D0D). oklch(12% 0.025 275.7), rgb(4, 5, 15).

Aa

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

About this color

#04050F is a very dark close to neutral grey. In OKLCH its lightness is 12%, its chroma 0.025. It has too little chroma to lean warm or cool. The nearest named color is Almost Black (#070D0D), ΔE 0.041 away. White text reads best on it, at 20.31:1.

Hue familyNeutrals
Lightnessvery dark (12%)
Chromaclose to neutral grey (0.025)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.03:1
White text20.31:1

Values

HEX#04050F
RGBrgb(4, 5, 15)
HSLhsl(235, 58%, 4%)
OKLCHoklch(12% 0.025 275.7)

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 #04050F 20.31:1 AAA Lc -107.8 Preferred for body text
Black text on #04050F 1.03:1 Fails Lc 0.0 Not readable
#04050F text on white 20.31:1 AAA Lc 106.0 Preferred for body text
#04050F text on black 1.03: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

    #F4F5F8

    oklch(97% 0.004 271.4)

  2. Step 100

    100

    #E8E9F0

    oklch(93.5% 0.009 279.7)

  3. Step 200

    200

    #D6D8E4

    oklch(88.4% 0.017 278.5)

  4. Step 300

    300

    #BBBFD4

    oklch(80.8% 0.03 277.1)

  5. Step 400

    400

    #989FBF

    oklch(70.8% 0.047 275.4)

  6. Step 500

    500

    #7F87AF

    oklch(63.2% 0.061 275.7)

  7. Step 600

    600

    #68709A

    oklch(55.5% 0.066 275.7)

  8. Step 700

    700

    #575E84

    oklch(49.2% 0.062 275.9)

  9. Step 800

    800

    #474D6B

    oklch(42.8% 0.05 275.3)

  10. Step 900

    900

    #3B4057

    oklch(37.7% 0.04 274.8)

  11. Step 950

    950 (this color)

    #04050F

    oklch(12% 0.025 275.7)

Export this scale for Tailwind in the Tailwind colors tool

#04050F 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)#03060F0.006
Deuteranopia (no green cones)#02050F0.007
Tritanopia (no blue cones)#0207080.024
Achromatopsia (no color)#0606060.025

Harmonies

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

Complementary

The opposite hue (180°).

  • #04050F

    #04050F

    oklch(12% 0.025 275.7)

  • #080600

    #080600

    oklch(12.2% 0.025 99.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04050F

    #04050F

    oklch(12% 0.025 275.7)

  • #01060E

    #01060E

    oklch(11.9% 0.025 247.3)

  • #08040D

    #08040D

    oklch(12.1% 0.025 306.9)

Open the analogous palette in the generator

Split complementary

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

  • #04050F

    #04050F

    oklch(12% 0.025 275.7)

  • #0C0400

    #0C0400

    oklch(12% 0.027 65.8)

  • #040701

    #040701

    oklch(12% 0.024 127)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04050F

    #04050F

    oklch(12% 0.025 275.7)

  • #0D0302

    #0D0302

    oklch(11.8% 0.025 31.7)

  • #010803

    #010803

    oklch(12% 0.025 154.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04050F

    #04050F

    oklch(12% 0.025 275.7)

  • #0D0305

    #0D0305

    oklch(12.1% 0.025 3.9)

  • #080600

    #080600

    oklch(12.2% 0.025 99.3)

  • #000807

    #000807

    oklch(12.1% 0.021 187.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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