#172A58

Closest named color: Marine (#042E60). oklch(29.8% 0.087 264.8), rgb(23, 42, 88).

Aa

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

About this color

#172A58 is a dark, moderately saturated blue. In OKLCH its lightness is 30%, its chroma 0.087 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.021 away. White text reads best on it, at 13.92:1.

Hue familyBlues
Lightnessdark (30%)
Chromamoderately saturated (0.087)
Temperaturecool
Nearest nameMarine (#042E60)
Black text1.50:1
White text13.92:1

Values

HEX#172A58
RGBrgb(23, 42, 88)
HSLhsl(222, 59%, 22%)
OKLCHoklch(29.8% 0.087 264.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 #172A58 13.92:1 AAA Lc -103.4 Preferred for body text
Black text on #172A58 1.50:1 Fails Lc 0.0 Not readable
#172A58 text on white 13.92:1 AAA Lc 100.3 Preferred for body text
#172A58 text on black 1.50: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

    #F1F6FF

    oklch(97.2% 0.013 262.4)

  2. Step 100

    100

    #E0EAFE

    oklch(93.6% 0.029 264.4)

  3. Step 200

    200

    #C7D9FF

    oklch(88.4% 0.056 265.2)

  4. Step 300

    300

    #A2C0FF

    oklch(80.9% 0.096 264.7)

  5. Step 400

    400

    #719DFF

    oklch(70.8% 0.152 264.6)

  6. Step 500

    500

    #4C80FF

    oklch(63.2% 0.197 264.6)

  7. Step 600

    600

    #2E62F6

    oklch(55.6% 0.228 264.8)

  8. Step 700

    700

    #2250D6

    oklch(49.1% 0.211 264.8)

  9. Step 800

    800

    #1D42AD

    oklch(42.6% 0.176 264.9)

  10. Step 900

    900

    #1C3A89

    oklch(37.7% 0.137 264.8)

  11. Step 950

    950 (this color)

    #172A58

    oklch(29.8% 0.087 264.8)

Export this scale for Tailwind in the Tailwind colors tool

#172A58 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)#112F5A0.015
Deuteranopia (no green cones)#0329570.019
Tritanopia (no blue cones)#00353C0.072
Achromatopsia (no color)#2C2C2C0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #172A58

    #172A58

    oklch(29.8% 0.087 264.8)

  • #3B2A00

    #3B2A00

    oklch(29.7% 0.061 84.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #172A58

    #172A58

    oklch(29.8% 0.087 264.8)

  • #003248

    #003248

    oklch(29.9% 0.063 234.2)

  • #312253

    #312253

    oklch(29.8% 0.086 294.7)

Open the analogous palette in the generator

Split complementary

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

  • #172A58

    #172A58

    oklch(29.8% 0.087 264.8)

  • #482100

    #482100

    oklch(29.7% 0.073 55.1)

  • #2D3100

    #2D3100

    oklch(29.9% 0.068 114.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #172A58

    #172A58

    oklch(29.8% 0.087 264.8)

  • #501716

    #501716

    oklch(29.8% 0.086 24.9)

  • #07380D

    #07380D

    oklch(29.9% 0.087 144.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #172A58

    #172A58

    oklch(29.8% 0.087 264.8)

  • #4C1630

    #4C1630

    oklch(29.7% 0.087 353.9)

  • #3B2A00

    #3B2A00

    oklch(29.7% 0.061 84.8)

  • #00362B

    #00362B

    oklch(29.7% 0.056 174.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #172A58 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.