#20317A

Closest named color: Marine Blue (#01386A). oklch(34.7% 0.126 268.9), rgb(32, 49, 122).

Aa

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

About this color

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

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

Values

HEX#20317A
RGBrgb(32, 49, 122)
HSLhsl(229, 58%, 30%)
OKLCHoklch(34.7% 0.126 268.9)

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 #20317A 11.78:1 AAA Lc -100.3 Preferred for body text
Black text on #20317A 1.78:1 Fails Lc 0.0 Not readable
#20317A text on white 11.78:1 AAA Lc 96.6 Preferred for body text
#20317A text on black 1.78: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

    #F2F5FE

    oklch(97% 0.012 271.3)

  2. Step 100

    100

    #E2EAFD

    oklch(93.7% 0.027 267.5)

  3. Step 200

    200

    #CBD8FD

    oklch(88.4% 0.053 270)

  4. Step 300

    300

    #A7BFFE

    oklch(81% 0.093 268.2)

  5. Step 400

    400

    #7A9AFE

    oklch(70.6% 0.151 268.9)

  6. Step 500

    500

    #5B7DFC

    oklch(63.1% 0.192 269)

  7. Step 600

    600

    #4362EC

    oklch(55.6% 0.21 268.8)

  8. Step 700

    700

    #3650CD

    oklch(49.1% 0.195 268.9)

  9. Step 800

    800

    #2C42A6

    oklch(42.6% 0.163 268.9)

  10. Step 900

    900 (this color)

    #20317A

    oklch(34.7% 0.126 268.9)

  11. Step 950

    950

    #17224D

    oklch(26.9% 0.081 269.5)

Export this scale for Tailwind in the Tailwind colors tool

#20317A 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)#003C7C0.033
Deuteranopia (no green cones)#0034790.024
Tritanopia (no blue cones)#0043500.101
Achromatopsia (no color)#3838380.126

Harmonies

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

Complementary

The opposite hue (180°).

  • #20317A

    #20317A

    oklch(34.7% 0.126 268.9)

  • #493700

    #493700

    oklch(34.7% 0.071 88.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #20317A

    #20317A

    oklch(34.7% 0.126 268.9)

  • #003E5E

    #003E5E

    oklch(34.7% 0.079 239.6)

  • #442471

    #442471

    oklch(34.7% 0.127 298.7)

Open the analogous palette in the generator

Split complementary

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

  • #20317A

    #20317A

    oklch(34.7% 0.126 268.9)

  • #582D00

    #582D00

    oklch(34.7% 0.082 59)

  • #363F00

    #363F00

    oklch(34.7% 0.081 118.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #20317A

    #20317A

    oklch(34.7% 0.126 268.9)

  • #6D110C

    #6D110C

    oklch(34.8% 0.126 28.8)

  • #00471A

    #00471A

    oklch(34.7% 0.098 148.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #20317A

    #20317A

    oklch(34.7% 0.126 268.9)

  • #680F38

    #680F38

    oklch(34.6% 0.126 358.9)

  • #493700

    #493700

    oklch(34.7% 0.071 88.2)

  • #00443A

    #00443A

    oklch(34.6% 0.063 178.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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