#20317F

Closest named color: Marine Blue (#01386A). oklch(35.2% 0.133 269), rgb(32, 49, 127).

Aa

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

About this color

#20317F is a dark, moderately saturated blue. In OKLCH its lightness is 35%, its chroma 0.133 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.048 away. White text reads best on it, at 11.62:1.

Hue familyBlues
Lightnessdark (35%)
Chromamoderately saturated (0.133)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.80:1
White text11.62:1

Values

HEX#20317F
RGBrgb(32, 49, 127)
HSLhsl(229, 60%, 31%)
OKLCHoklch(35.2% 0.133 269)

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 #20317F 11.62:1 AAA Lc -100.0 Preferred for body text
Black text on #20317F 1.80:1 Fails Lc 7.6 Not readable
#20317F text on white 11.62:1 AAA Lc 96.3 Preferred for body text
#20317F text on black 1.80: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

    #F2F5FF

    oklch(97.1% 0.014 272.7)

  2. Step 100

    100

    #E2EAFE

    oklch(93.7% 0.028 268.4)

  3. Step 200

    200

    #CAD8FF

    oklch(88.4% 0.056 269.7)

  4. Step 300

    300

    #A7BEFF

    oklch(80.8% 0.096 269.2)

  5. Step 400

    400

    #7A9AFF

    oklch(70.7% 0.152 269)

  6. Step 500

    500

    #5A7CFF

    oklch(63% 0.198 269.1)

  7. Step 600

    600

    #425FF2

    oklch(55.5% 0.222 269.2)

  8. Step 700

    700

    #354DD3

    oklch(49.1% 0.206 269.2)

  9. Step 800

    800

    #2B41AB

    oklch(42.8% 0.171 268.8)

  10. Step 900

    900 (this color)

    #20317F

    oklch(35.2% 0.133 269)

  11. Step 950

    950

    #16224F

    oklch(27% 0.084 268.9)

Export this scale for Tailwind in the Tailwind colors tool

#20317F 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)#003D820.035
Deuteranopia (no green cones)#00347D0.024
Tritanopia (no blue cones)#0045530.107
Achromatopsia (no color)#3939390.133

Harmonies

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

Complementary

The opposite hue (180°).

  • #20317F

    #20317F

    oklch(35.2% 0.133 269)

  • #4A3800

    #4A3800

    oklch(35.1% 0.072 88.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #20317F

    #20317F

    oklch(35.2% 0.133 269)

  • #003F5F

    #003F5F

    oklch(35% 0.079 239.3)

  • #462375

    #462375

    oklch(35.1% 0.133 298.9)

Open the analogous palette in the generator

Split complementary

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

  • #20317F

    #20317F

    oklch(35.2% 0.133 269)

  • #5A2E00

    #5A2E00

    oklch(35.2% 0.083 58.8)

  • #374000

    #374000

    oklch(35.1% 0.082 118.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #20317F

    #20317F

    oklch(35.2% 0.133 269)

  • #710D08

    #710D08

    oklch(35.3% 0.133 29.1)

  • #00481B

    #00481B

    oklch(35.1% 0.099 149.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #20317F

    #20317F

    oklch(35.2% 0.133 269)

  • #6C0B39

    #6C0B39

    oklch(35.1% 0.133 359.2)

  • #4A3800

    #4A3800

    oklch(35.1% 0.072 88.5)

  • #00463B

    #00463B

    oklch(35.3% 0.065 177.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #20317F 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.