#04081A

Closest named color: Rich Navy (#001219). oklch(14.2% 0.04 268.2), rgb(4, 8, 26).

Aa

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

About this color

#04081A is a very dark, muted blue. In OKLCH its lightness is 14%, its chroma 0.040 and its hue 268°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.040 away. White text reads best on it, at 19.90:1.

Hue familyBlues
Lightnessvery dark (14%)
Chromamuted (0.040)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.05:1
White text19.90:1

Values

HEX#04081A
RGBrgb(4, 8, 26)
HSLhsl(229, 73%, 6%)
OKLCHoklch(14.2% 0.04 268.2)

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 #04081A 19.90:1 AAA Lc -107.7 Preferred for body text
Black text on #04081A 1.05:1 Fails Lc 0.0 Not readable
#04081A text on white 19.90:1 AAA Lc 105.8 Preferred for body text
#04081A 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

    #F3F5FA

    oklch(97% 0.007 268.5)

  2. Step 100

    100

    #E6EAF3

    oklch(93.7% 0.013 266.7)

  3. Step 200

    200

    #D2D9EB

    oklch(88.5% 0.026 268.8)

  4. Step 300

    300

    #B3C0E0

    oklch(80.8% 0.047 267.8)

  5. Step 400

    400

    #8C9FD1

    oklch(70.6% 0.077 268.3)

  6. Step 500

    500

    #7087C5

    oklch(63.1% 0.098 268)

  7. Step 600

    600

    #5970B2

    oklch(55.7% 0.106 268.3)

  8. Step 700

    700

    #495D99

    oklch(49% 0.1 268.6)

  9. Step 800

    800

    #3C4C7C

    oklch(42.6% 0.083 268.8)

  10. Step 900

    900

    #334064

    oklch(37.7% 0.064 268.1)

  11. Step 950

    950 (this color)

    #04081A

    oklch(14.2% 0.04 268.2)

Export this scale for Tailwind in the Tailwind colors tool

#04081A 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)#020A1B0.009
Deuteranopia (no green cones)#01081A0.009
Tritanopia (no blue cones)#000C0F0.034
Achromatopsia (no color)#0909090.040

Harmonies

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

Complementary

The opposite hue (180°).

  • #04081A

    #04081A

    oklch(14.2% 0.04 268.2)

  • #0E0900

    #0E0900

    oklch(14.3% 0.029 91.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04081A

    #04081A

    oklch(14.2% 0.04 268.2)

  • #000B15

    #000B15

    oklch(14.2% 0.032 238.2)

  • #0C0618

    #0C0618

    oklch(14.4% 0.04 297.6)

Open the analogous palette in the generator

Split complementary

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

  • #04081A

    #04081A

    oklch(14.2% 0.04 268.2)

  • #140600

    #140600

    oklch(14.3% 0.034 58.1)

  • #080B00

    #080B00

    oklch(14.1% 0.033 119)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04081A

    #04081A

    oklch(14.2% 0.04 268.2)

  • #170302

    #170302

    oklch(14.1% 0.041 29)

  • #000E02

    #000E02

    oklch(14.3% 0.041 147.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04081A

    #04081A

    oklch(14.2% 0.04 268.2)

  • #160309

    #160309

    oklch(14.2% 0.04 359.3)

  • #0E0900

    #0E0900

    oklch(14.3% 0.029 91.6)

  • #000D09

    #000D09

    oklch(14.2% 0.027 175.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04081A 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.