#040348

Named color: Night Blue. oklch(19.1% 0.12 267.8), rgb(4, 3, 72).

Aa

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

About this color

#040348 is a very dark, moderately saturated blue. In OKLCH its lightness is 19%, its chroma 0.120 and its hue 268°. Its hue sits on the cool side of the wheel. It is the named color Night Blue. White text reads best on it, at 18.88:1.

Hue familyBlues
Lightnessvery dark (19%)
Chromamoderately saturated (0.120)
Temperaturecool
Nearest nameNight Blue
Black text1.11:1
White text18.88:1

Values

HEX#040348
RGBrgb(4, 3, 72)
HSLhsl(241, 92%, 15%)
OKLCHoklch(19.1% 0.12 267.8)

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 #040348 18.88:1 AAA Lc -106.8 Preferred for body text
Black text on #040348 1.11:1 Fails Lc 0.0 Not readable
#040348 text on white 18.88:1 AAA Lc 104.5 Preferred for body text
#040348 text on black 1.11: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

    #F1F5FF

    oklch(97% 0.014 268.5)

  2. Step 100

    100

    #E1EAFF

    oklch(93.7% 0.03 267.2)

  3. Step 200

    200

    #C9D9FF

    oklch(88.6% 0.055 267.2)

  4. Step 300

    300

    #A6BFFF

    oklch(80.9% 0.095 267.8)

  5. Step 400

    400

    #789BFF

    oklch(70.8% 0.152 267.9)

  6. Step 500

    500

    #567DFF

    oklch(63% 0.198 267.8)

  7. Step 600

    600

    #395BFF

    oklch(55.6% 0.245 267.9)

  8. Step 700

    700

    #2731FF

    oklch(49% 0.287 267.8)

  9. Step 800

    800

    #1F2BD0

    oklch(42.7% 0.242 267.8)

  10. Step 900

    900

    #1A2CA3

    oklch(37.6% 0.189 267.8)

  11. Step 950

    950 (this color)

    #040348

    oklch(19.1% 0.12 267.8)

Export this scale for Tailwind in the Tailwind colors tool

#040348 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)#00154A0.039
Deuteranopia (no green cones)#000D470.019
Tritanopia (no blue cones)#001A270.090
Achromatopsia (no color)#1111110.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #040348

    #040348

    oklch(19.1% 0.12 267.8)

  • #1B1300

    #1B1300

    oklch(19.2% 0.039 89.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040348

    #040348

    oklch(19.1% 0.12 267.8)

  • #001624

    #001624

    oklch(19% 0.042 237.5)

  • #1B003A

    #1B003A

    oklch(18.9% 0.102 297.6)

Open the analogous palette in the generator

Split complementary

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

  • #040348

    #040348

    oklch(19.1% 0.12 267.8)

  • #230E00

    #230E00

    oklch(19.2% 0.046 58.2)

  • #121600

    #121600

    oklch(18.9% 0.044 118)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040348

    #040348

    oklch(19.1% 0.12 267.8)

  • #2E0001

    #2E0001

    oklch(18.9% 0.077 27.3)

  • #001A05

    #001A05

    oklch(19% 0.055 148.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040348

    #040348

    oklch(19.1% 0.12 267.8)

  • #2C0014

    #2C0014

    oklch(19.1% 0.078 357.6)

  • #1B1300

    #1B1300

    oklch(19.2% 0.039 89.7)

  • #001914

    #001914

    oklch(19.1% 0.035 178.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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