#04060F

Closest named color: Almost Black (#070D0D). oklch(12.5% 0.022 269.7), rgb(4, 6, 15).

Aa

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

About this color

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

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

Values

HEX#04060F
RGBrgb(4, 6, 15)
HSLhsl(229, 58%, 4%)
OKLCHoklch(12.5% 0.022 269.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 #04060F 20.22:1 AAA Lc -107.8 Preferred for body text
Black text on #04060F 1.03:1 Fails Lc 0.0 Not readable
#04060F text on white 20.22:1 AAA Lc 106.0 Preferred for body text
#04060F 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

    #E8EAEF

    oklch(93.7% 0.007 268.5)

  3. Step 200

    200

    #D5D9E3

    oklch(88.5% 0.014 268.5)

  4. Step 300

    300

    #BAC0D2

    oklch(80.9% 0.026 271.1)

  5. Step 400

    400

    #96A0BC

    oklch(70.7% 0.043 269.8)

  6. Step 500

    500

    #7C88AB

    oklch(63% 0.055 270)

  7. Step 600

    600

    #657296

    oklch(55.5% 0.058 269.1)

  8. Step 700

    700

    #545F80

    oklch(49% 0.055 270)

  9. Step 800

    800

    #454E68

    oklch(42.7% 0.045 269.6)

  10. Step 900

    900

    #3A4155

    oklch(37.7% 0.036 269.6)

  11. Step 950

    950 (this color)

    #04060F

    oklch(12.5% 0.022 269.7)

Export this scale for Tailwind in the Tailwind colors tool

#04060F 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)#04070F0.005
Deuteranopia (no green cones)#03060F0.003
Tritanopia (no blue cones)#0208090.021
Achromatopsia (no color)#0606060.023

Harmonies

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

Complementary

The opposite hue (180°).

  • #04060F

    #04060F

    oklch(12.5% 0.022 269.7)

  • #090601

    #090601

    oklch(12.4% 0.02 89.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04060F

    #04060F

    oklch(12.5% 0.022 269.7)

  • #01070E

    #01070E

    oklch(12.3% 0.023 240.5)

  • #08050E

    #08050E

    oklch(12.6% 0.023 301.1)

Open the analogous palette in the generator

Split complementary

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

  • #04060F

    #04060F

    oklch(12.5% 0.022 269.7)

  • #0C0501

    #0C0501

    oklch(12.5% 0.022 65.6)

  • #060701

    #060701

    oklch(12.3% 0.022 115.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04060F

    #04060F

    oklch(12.5% 0.022 269.7)

  • #0E0403

    #0E0403

    oklch(12.6% 0.023 30.1)

  • #020903

    #020903

    oklch(12.6% 0.025 148.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04060F

    #04060F

    oklch(12.5% 0.022 269.7)

  • #0D0406

    #0D0406

    oklch(12.6% 0.021 2.2)

  • #090601

    #090601

    oklch(12.4% 0.02 89.8)

  • #000907

    #000907

    oklch(12.5% 0.023 181.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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