#1F2160

Closest named color: Midnight Blue (#191970). oklch(29% 0.109 275.8), rgb(31, 33, 96).

Aa

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

About this color

#1F2160 is a dark, moderately saturated blue. In OKLCH its lightness is 29%, its chroma 0.109 and its hue 276°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.035 away. White text reads best on it, at 14.53:1.

Hue familyBlues
Lightnessdark (29%)
Chromamoderately saturated (0.109)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.44:1
White text14.53:1

Values

HEX#1F2160
RGBrgb(31, 33, 96)
HSLhsl(238, 51%, 25%)
OKLCHoklch(29% 0.109 275.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 #1F2160 14.53:1 AAA Lc -104.0 Preferred for body text
Black text on #1F2160 1.44:1 Fails Lc 0.0 Not readable
#1F2160 text on white 14.53:1 AAA Lc 101.0 Preferred for body text
#1F2160 text on black 1.44: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

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E4E9FF

    oklch(93.7% 0.03 275.6)

  3. Step 200

    200

    #CED7FF

    oklch(88.5% 0.056 275.2)

  4. Step 300

    300

    #AFBCFF

    oklch(80.9% 0.096 275.6)

  5. Step 400

    400

    #8796FF

    oklch(70.7% 0.154 275.6)

  6. Step 500

    500

    #6C77FF

    oklch(63.2% 0.199 275.6)

  7. Step 600

    600

    #5652FF

    oklch(55.6% 0.247 275.8)

  8. Step 700

    700

    #482FF3

    oklch(49.2% 0.268 275.8)

  9. Step 800

    800

    #3A2BC4

    oklch(42.7% 0.222 275.9)

  10. Step 900

    900

    #2F2B9A

    oklch(37.6% 0.173 275.7)

  11. Step 950

    950 (this color)

    #1F2160

    oklch(29% 0.109 275.8)

Export this scale for Tailwind in the Tailwind colors tool

#1F2160 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)#002C620.038
Deuteranopia (no green cones)#00265F0.033
Tritanopia (no blue cones)#00313D0.091
Achromatopsia (no color)#2929290.110

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F2160

    #1F2160

    oklch(29% 0.109 275.8)

  • #342B00

    #342B00

    oklch(29% 0.06 96.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F2160

    #1F2160

    oklch(29% 0.109 275.8)

  • #002D4D

    #002D4D

    oklch(28.8% 0.074 246)

  • #391655

    #391655

    oklch(28.9% 0.11 306.1)

Open the analogous palette in the generator

Split complementary

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

  • #1F2160

    #1F2160

    oklch(29% 0.109 275.8)

  • #402300

    #402300

    oklch(28.8% 0.064 65.6)

  • #223100

    #223100

    oklch(28.9% 0.073 125.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F2160

    #1F2160

    oklch(29% 0.109 275.8)

  • #521000

    #521000

    oklch(29% 0.1 35.6)

  • #00351C

    #00351C

    oklch(28.9% 0.07 156.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F2160

    #1F2160

    oklch(29% 0.109 275.8)

  • #530523

    #530523

    oklch(28.9% 0.109 5.6)

  • #342B00

    #342B00

    oklch(29% 0.06 96.7)

  • #00332F

    #00332F

    oklch(28.9% 0.051 186.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #1F2160 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.