#172F6F

Closest named color: Marine Blue (#01386A). oklch(32.9% 0.115 265.1), rgb(23, 47, 111).

Aa

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

About this color

#172F6F is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.115 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.030 away. White text reads best on it, at 12.55:1.

Hue familyBlues
Lightnessdark (33%)
Chromamoderately saturated (0.115)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.67:1
White text12.55:1

Values

HEX#172F6F
RGBrgb(23, 47, 111)
HSLhsl(224, 66%, 26%)
OKLCHoklch(32.9% 0.115 265.1)

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 #172F6F 12.55:1 AAA Lc -101.5 Preferred for body text
Black text on #172F6F 1.67:1 Fails Lc 0.0 Not readable
#172F6F text on white 12.55:1 AAA Lc 98.1 Preferred for body text
#172F6F text on black 1.67: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

    #F2F6FE

    oklch(97.2% 0.012 264.5)

  2. Step 100

    100

    #E2EAFB

    oklch(93.6% 0.025 265.6)

  3. Step 200

    200

    #CAD9FA

    oklch(88.5% 0.048 266)

  4. Step 300

    300

    #A5C0F9

    oklch(80.8% 0.086 264.8)

  5. Step 400

    400

    #769DF7

    oklch(70.6% 0.139 265.3)

  6. Step 500

    500

    #5482F3

    oklch(63.1% 0.177 265.1)

  7. Step 600

    600

    #3A68E2

    oklch(55.6% 0.193 265)

  8. Step 700

    700

    #2D56C4

    oklch(49.1% 0.178 265)

  9. Step 800

    800

    #26479E

    oklch(42.7% 0.147 265)

  10. Step 900

    900 (this color)

    #172F6F

    oklch(32.9% 0.115 265.1)

  11. Step 950

    950

    #15244A

    oklch(27% 0.073 265.6)

Export this scale for Tailwind in the Tailwind colors tool

#172F6F 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)#0038710.027
Deuteranopia (no green cones)#00306E0.016
Tritanopia (no blue cones)#003F4A0.091
Achromatopsia (no color)#3333330.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #172F6F

    #172F6F

    oklch(32.9% 0.115 265.1)

  • #453200

    #453200

    oklch(33% 0.068 85.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #172F6F

    #172F6F

    oklch(32.9% 0.115 265.1)

  • #003A53

    #003A53

    oklch(32.9% 0.069 234.5)

  • #3B2368

    #3B2368

    oklch(32.7% 0.115 295.3)

Open the analogous palette in the generator

Split complementary

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

  • #172F6F

    #172F6F

    oklch(32.9% 0.115 265.1)

  • #542700

    #542700

    oklch(32.9% 0.082 54.5)

  • #343900

    #343900

    oklch(32.8% 0.075 115.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #172F6F

    #172F6F

    oklch(32.9% 0.115 265.1)

  • #631113

    #631113

    oklch(32.8% 0.115 25.2)

  • #00420C

    #00420C

    oklch(32.9% 0.104 145)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #172F6F

    #172F6F

    oklch(32.9% 0.115 265.1)

  • #5E1138

    #5E1138

    oklch(32.8% 0.115 354.8)

  • #453200

    #453200

    oklch(33% 0.068 85.3)

  • #003F33

    #003F33

    oklch(32.8% 0.062 174.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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