#1F163F

Closest named color: Dark Indigo (#1F0954). oklch(23.7% 0.075 289.5), rgb(31, 22, 63).

Aa

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

About this color

#1F163F is a very dark, moderately saturated purple. In OKLCH its lightness is 24%, its chroma 0.075 and its hue 290°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Indigo (#1F0954), ΔE 0.047 away. White text reads best on it, at 16.87:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamoderately saturated (0.075)
Temperaturecool
Nearest nameDark Indigo (#1F0954)
Black text1.24:1
White text16.87:1

Values

HEX#1F163F
RGBrgb(31, 22, 63)
HSLhsl(253, 48%, 17%)
OKLCHoklch(23.7% 0.075 289.5)

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 #1F163F 16.87:1 AAA Lc -106.0 Preferred for body text
Black text on #1F163F 1.24:1 Fails Lc 0.0 Not readable
#1F163F text on white 16.87:1 AAA Lc 103.6 Preferred for body text
#1F163F text on black 1.24: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

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #E9E7FA

    oklch(93.5% 0.026 290.7)

  3. Step 200

    200

    #D8D4F8

    oklch(88.4% 0.049 290.4)

  4. Step 300

    300

    #BFB7F7

    oklch(80.8% 0.09 290)

  5. Step 400

    400

    #9F90F3

    oklch(70.7% 0.142 289.2)

  6. Step 500

    500

    #8A70EE

    oklch(63% 0.182 289.6)

  7. Step 600

    600

    #7555DC

    oklch(55.6% 0.197 289.3)

  8. Step 700

    700

    #6344BF

    oklch(49.1% 0.183 289.5)

  9. Step 800

    800

    #51399B

    oklch(42.8% 0.152 289.7)

  10. Step 900

    900

    #42327B

    oklch(37.6% 0.119 289.5)

  11. Step 950

    950 (this color)

    #1F163F

    oklch(23.7% 0.075 289.5)

Export this scale for Tailwind in the Tailwind colors tool

#1F163F 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)#011E400.045
Deuteranopia (no green cones)#021C3E0.044
Tritanopia (no blue cones)#151F270.063
Achromatopsia (no color)#1D1D1D0.075

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F163F

    #1F163F

    oklch(23.7% 0.075 289.5)

  • #212000

    #212000

    oklch(23.7% 0.051 108)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F163F

    #1F163F

    oklch(23.7% 0.075 289.5)

  • #061D41

    #061D41

    oklch(23.7% 0.074 259)

  • #2D1034

    #2D1034

    oklch(23.7% 0.074 319.4)

Open the analogous palette in the generator

Split complementary

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

  • #1F163F

    #1F163F

    oklch(23.7% 0.075 289.5)

  • #2B1B00

    #2B1B00

    oklch(23.7% 0.049 78.2)

  • #072600

    #072600

    oklch(23.6% 0.075 139.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F163F

    #1F163F

    oklch(23.7% 0.075 289.5)

  • #351300

    #351300

    oklch(23.6% 0.063 49.2)

  • #00261B

    #00261B

    oklch(23.9% 0.048 169.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F163F

    #1F163F

    oklch(23.7% 0.075 289.5)

  • #3B0B0F

    #3B0B0F

    oklch(23.8% 0.075 20.4)

  • #212000

    #212000

    oklch(23.7% 0.051 108)

  • #002426

    #002426

    oklch(23.7% 0.04 200.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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