#041228

Closest named color: Rich Navy (#001219). oklch(18.4% 0.05 257.6), rgb(4, 18, 40).

Aa

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

About this color

#041228 is a very dark, muted blue. In OKLCH its lightness is 18%, its chroma 0.050 and its hue 258°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.033 away. White text reads best on it, at 18.71:1.

Hue familyBlues
Lightnessvery dark (18%)
Chromamuted (0.050)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.12:1
White text18.71:1

Values

HEX#041228
RGBrgb(4, 18, 40)
HSLhsl(217, 82%, 9%)
OKLCHoklch(18.4% 0.05 257.6)

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 #041228 18.71:1 AAA Lc -107.2 Preferred for body text
Black text on #041228 1.12:1 Fails Lc 0.0 Not readable
#041228 text on white 18.71:1 AAA Lc 105.1 Preferred for body text
#041228 text on black 1.12: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

    #F2F6FB

    oklch(97.2% 0.008 253.9)

  2. Step 100

    100

    #E3EAF6

    oklch(93.5% 0.018 261.3)

  3. Step 200

    200

    #CCDAEF

    oklch(88.4% 0.033 258.4)

  4. Step 300

    300

    #A9C2E7

    oklch(80.8% 0.059 258.1)

  5. Step 400

    400

    #7BA2DB

    oklch(70.6% 0.094 257.8)

  6. Step 500

    500

    #598AD1

    oklch(63% 0.12 257.6)

  7. Step 600

    600

    #3E73BF

    oklch(55.6% 0.131 257.6)

  8. Step 700

    700

    #3060A4

    oklch(49.1% 0.121 257.5)

  9. Step 800

    800

    #294F85

    oklch(42.8% 0.1 257.4)

  10. Step 900

    900

    #25426B

    oklch(37.8% 0.079 257.2)

  11. Step 950

    950 (this color)

    #041228

    oklch(18.4% 0.05 257.6)

Export this scale for Tailwind in the Tailwind colors tool

#041228 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)#0714290.009
Deuteranopia (no green cones)#0311280.004
Tritanopia (no blue cones)#00171A0.039
Achromatopsia (no color)#1212120.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #041228

    #041228

    oklch(18.4% 0.05 257.6)

  • #1C1000

    #1C1000

    oklch(18.5% 0.039 77.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #041228

    #041228

    oklch(18.4% 0.05 257.6)

  • #00151F

    #00151F

    oklch(18.3% 0.036 229.3)

  • #120E27

    #120E27

    oklch(18.5% 0.049 287.9)

Open the analogous palette in the generator

Split complementary

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

  • #041228

    #041228

    oklch(18.4% 0.05 257.6)

  • #230A00

    #230A00

    oklch(18.4% 0.049 48.9)

  • #141300

    #141300

    oklch(18.2% 0.039 107.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #041228

    #041228

    oklch(18.4% 0.05 257.6)

  • #24070A

    #24070A

    oklch(18.3% 0.05 16.9)

  • #061702

    #061702

    oklch(18.3% 0.049 138.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #041228

    #041228

    oklch(18.4% 0.05 257.6)

  • #210816

    #210816

    oklch(18.3% 0.048 348)

  • #1C1000

    #1C1000

    oklch(18.5% 0.039 77.5)

  • #00180F

    #00180F

    oklch(18.5% 0.038 166.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #041228 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.