#172F6A

Closest named color: Marine (#042E60). oklch(32.4% 0.108 264.5), rgb(23, 47, 106).

Aa

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

About this color

#172F6A is a dark, moderately saturated blue. In OKLCH its lightness is 32%, its chroma 0.108 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.024 away. White text reads best on it, at 12.71:1.

Hue familyBlues
Lightnessdark (32%)
Chromamoderately saturated (0.108)
Temperaturecool
Nearest nameMarine (#042E60)
Black text1.65:1
White text12.71:1

Values

HEX#172F6A
RGBrgb(23, 47, 106)
HSLhsl(223, 64%, 25%)
OKLCHoklch(32.4% 0.108 264.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 #172F6A 12.71:1 AAA Lc -101.8 Preferred for body text
Black text on #172F6A 1.65:1 Fails Lc 0.0 Not readable
#172F6A text on white 12.71:1 AAA Lc 98.4 Preferred for body text
#172F6A text on black 1.65: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 900.

  1. Step 50

    50

    #F2F6FD

    oklch(97.2% 0.01 261.8)

  2. Step 100

    100

    #E2EAFA

    oklch(93.6% 0.023 264.5)

  3. Step 200

    200

    #CAD9F8

    oklch(88.4% 0.046 264.9)

  4. Step 300

    300

    #A7C1F6

    oklch(81% 0.081 264.3)

  5. Step 400

    400

    #789EF1

    oklch(70.6% 0.129 264.6)

  6. Step 500

    500

    #5684EC

    oklch(63.2% 0.164 264.3)

  7. Step 600

    600

    #3C6ADB

    oklch(55.5% 0.181 264.5)

  8. Step 700

    700

    #2F58BE

    oklch(49.1% 0.167 264.5)

  9. Step 800

    800

    #274999

    oklch(42.8% 0.137 264.1)

  10. Step 900

    900 (this color)

    #172F6A

    oklch(32.4% 0.108 264.5)

  11. Step 950

    950

    #152547

    oklch(27.1% 0.067 263.6)

Export this scale for Tailwind in the Tailwind colors tool

#172F6A 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)#06376C0.024
Deuteranopia (no green cones)#002F690.017
Tritanopia (no blue cones)#003D470.085
Achromatopsia (no color)#3333330.108

Harmonies

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

Complementary

The opposite hue (180°).

  • #172F6A

    #172F6A

    oklch(32.4% 0.108 264.5)

  • #443000

    #443000

    oklch(32.4% 0.067 83.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #172F6A

    #172F6A

    oklch(32.4% 0.108 264.5)

  • #003951

    #003951

    oklch(32.5% 0.068 233.8)

  • #392464

    #392464

    oklch(32.4% 0.108 294.7)

Open the analogous palette in the generator

Split complementary

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

  • #172F6A

    #172F6A

    oklch(32.4% 0.108 264.5)

  • #522600

    #522600

    oklch(32.4% 0.081 54.6)

  • #333800

    #333800

    oklch(32.5% 0.074 115.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #172F6A

    #172F6A

    oklch(32.4% 0.108 264.5)

  • #5F1416

    #5F1416

    oklch(32.3% 0.107 24.3)

  • #004009

    #004009

    oklch(32.3% 0.103 144.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #172F6A

    #172F6A

    oklch(32.4% 0.108 264.5)

  • #5B1437

    #5B1437

    oklch(32.5% 0.108 354.8)

  • #443000

    #443000

    oklch(32.4% 0.067 83.3)

  • #003E32

    #003E32

    oklch(32.5% 0.061 174.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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