#04070E

Closest named color: Almost Black (#070D0D). oklch(12.8% 0.018 260.7), rgb(4, 7, 14).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (13%)
Chromaclose to neutral grey (0.018)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.04:1
White text20.15:1

Values

HEX#04070E
RGBrgb(4, 7, 14)
HSLhsl(222, 56%, 4%)
OKLCHoklch(12.8% 0.018 260.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 #04070E 20.15:1 AAA Lc -107.8 Preferred for body text
Black text on #04070E 1.04:1 Fails Lc 0.0 Not readable
#04070E text on white 20.15:1 AAA Lc 105.9 Preferred for body text
#04070E 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

    #F4F5F7

    oklch(97% 0.003 264.5)

  2. Step 100

    100

    #E7EAEE

    oklch(93.6% 0.006 255.5)

  3. Step 200

    200

    #D5D9E1

    oklch(88.5% 0.012 264.5)

  4. Step 300

    300

    #B9C1CF

    oklch(80.9% 0.022 261.8)

  5. Step 400

    400

    #95A1B7

    oklch(70.7% 0.035 262.6)

  6. Step 500

    500

    #7B8AA5

    oklch(63.1% 0.044 262.2)

  7. Step 600

    600

    #637490

    oklch(55.6% 0.048 260.3)

  8. Step 700

    700

    #52617A

    oklch(49% 0.044 260.5)

  9. Step 800

    800

    #444F63

    oklch(42.6% 0.036 262.3)

  10. Step 900

    900

    #394251

    oklch(37.7% 0.028 260.6)

  11. Step 950

    950 (this color)

    #04070E

    oklch(12.8% 0.018 260.7)

Export this scale for Tailwind in the Tailwind colors tool

#04070E 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)#05070E0.003
Deuteranopia (no green cones)#04070E0.000
Tritanopia (no blue cones)#0208090.016
Achromatopsia (no color)#0707070.018

Harmonies

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

Complementary

The opposite hue (180°).

  • #04070E

    #04070E

    oklch(12.8% 0.018 260.7)

  • #0A0602

    #0A0602

    oklch(12.6% 0.017 77.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04070E

    #04070E

    oklch(12.8% 0.018 260.7)

  • #02080D

    #02080D

    oklch(12.8% 0.018 234.1)

  • #07060D

    #07060D

    oklch(12.8% 0.017 291.6)

Open the analogous palette in the generator

Split complementary

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

  • #04070E

    #04070E

    oklch(12.8% 0.018 260.7)

  • #0D0503

    #0D0503

    oklch(12.8% 0.019 41.6)

  • #070802

    #070802

    oklch(13% 0.019 114.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04070E

    #04070E

    oklch(12.8% 0.018 260.7)

  • #0D0505

    #0D0505

    oklch(12.9% 0.017 19.6)

  • #040903

    #040903

    oklch(13% 0.021 139)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04070E

    #04070E

    oklch(12.8% 0.018 260.7)

  • #0C0508

    #0C0508

    oklch(12.9% 0.017 349.1)

  • #0A0602

    #0A0602

    oklch(12.6% 0.017 77.3)

  • #020906

    #020906

    oklch(12.8% 0.018 169.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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