#04061F

Closest named color: Midnight (#03012D). oklch(14% 0.054 272.3), rgb(4, 6, 31).

Aa

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

About this color

#04061F is a very dark, muted blue. In OKLCH its lightness is 14%, its chroma 0.054 and its hue 272°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.034 away. White text reads best on it, at 19.98:1.

Hue familyBlues
Lightnessvery dark (14%)
Chromamuted (0.054)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.05:1
White text19.98:1

Values

HEX#04061F
RGBrgb(4, 6, 31)
HSLhsl(236, 77%, 7%)
OKLCHoklch(14% 0.054 272.3)

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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5E9F7

    oklch(93.5% 0.019 273.2)

  3. Step 200

    200

    #D1D8F1

    oklch(88.5% 0.035 273.2)

  4. Step 300

    300

    #B2BFEB

    oklch(81% 0.064 272)

  5. Step 400

    400

    #8A9CE1

    oklch(70.6% 0.103 272.3)

  6. Step 500

    500

    #6F83D8

    oklch(63.2% 0.13 272.2)

  7. Step 600

    600

    #586AC5

    oklch(55.5% 0.142 272.6)

  8. Step 700

    700

    #4858AB

    oklch(49.1% 0.133 272.4)

  9. Step 800

    800

    #3B498A

    oklch(42.8% 0.108 271.9)

  10. Step 900

    900

    #323D6E

    oklch(37.6% 0.085 272.2)

  11. Step 950

    950 (this color)

    #04061F

    oklch(14% 0.054 272.3)

Export this scale for Tailwind in the Tailwind colors tool

#04061F 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)#000A200.017
Deuteranopia (no green cones)#00071E0.013
Tritanopia (no blue cones)#000C110.043
Achromatopsia (no color)#0808080.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #04061F

    #04061F

    oklch(14% 0.054 272.3)

  • #0D0900

    #0D0900

    oklch(14.1% 0.029 95.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04061F

    #04061F

    oklch(14% 0.054 272.3)

  • #000A16

    #000A16

    oklch(13.9% 0.034 244)

  • #0E031B

    #0E031B

    oklch(14% 0.055 303.3)

Open the analogous palette in the generator

Split complementary

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

  • #04061F

    #04061F

    oklch(14% 0.054 272.3)

  • #120600

    #120600

    oklch(13.9% 0.032 62.6)

  • #070B00

    #070B00

    oklch(14% 0.034 122)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04061F

    #04061F

    oklch(14% 0.054 272.3)

  • #1A0100

    #1A0100

    oklch(14% 0.053 32.2)

  • #000D03

    #000D03

    oklch(13.9% 0.037 151.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04061F

    #04061F

    oklch(14% 0.054 272.3)

  • #190007

    #190007

    oklch(13.8% 0.056 2.2)

  • #0D0900

    #0D0900

    oklch(14.1% 0.029 95.3)

  • #000C0A

    #000C0A

    oklch(13.9% 0.025 184.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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