#20266A

Closest named color: Midnight Blue (#191970). oklch(31% 0.117 273.5), rgb(32, 38, 106).

Aa

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

About this color

#20266A is a dark, moderately saturated blue. In OKLCH its lightness is 31%, its chroma 0.117 and its hue 274°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.034 away. White text reads best on it, at 13.57:1.

Hue familyBlues
Lightnessdark (31%)
Chromamoderately saturated (0.117)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.54:1
White text13.57:1

Values

HEX#20266A
RGBrgb(32, 38, 106)
HSLhsl(235, 54%, 27%)
OKLCHoklch(31% 0.117 273.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 #20266A 13.57:1 AAA Lc -102.9 Preferred for body text
Black text on #20266A 1.54:1 Fails Lc 0.0 Not readable
#20266A text on white 13.57:1 AAA Lc 99.7 Preferred for body text
#20266A text on black 1.54: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

    #F2F5FF

    oklch(97.1% 0.014 272.7)

  2. Step 100

    100

    #E3E9FF

    oklch(93.6% 0.03 273.6)

  3. Step 200

    200

    #CDD7FF

    oklch(88.4% 0.056 274.2)

  4. Step 300

    300

    #ACBDFF

    oklch(80.9% 0.095 273)

  5. Step 400

    400

    #8397FF

    oklch(70.7% 0.153 273.6)

  6. Step 500

    500

    #6679FF

    oklch(63.1% 0.198 273.3)

  7. Step 600

    600

    #4F55FF

    oklch(55.7% 0.246 273.5)

  8. Step 700

    700

    #4126FE

    oklch(49.1% 0.287 273.5)

  9. Step 800

    800

    #3425CD

    oklch(42.7% 0.238 273.6)

  10. Step 900

    900

    #2A29A1

    oklch(37.7% 0.185 273.3)

  11. Step 950

    950 (this color)

    #20266A

    oklch(31% 0.117 273.5)

Export this scale for Tailwind in the Tailwind colors tool

#20266A 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)#00316C0.036
Deuteranopia (no green cones)#002B690.030
Tritanopia (no blue cones)#0037440.096
Achromatopsia (no color)#2E2E2E0.118

Harmonies

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

Complementary

The opposite hue (180°).

  • #20266A

    #20266A

    oklch(31% 0.117 273.5)

  • #3B2F00

    #3B2F00

    oklch(31% 0.063 93.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #20266A

    #20266A

    oklch(31% 0.117 273.5)

  • #003353

    #003353

    oklch(30.9% 0.076 243.7)

  • #3D1A5F

    #3D1A5F

    oklch(30.9% 0.117 303.4)

Open the analogous palette in the generator

Split complementary

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

  • #20266A

    #20266A

    oklch(31% 0.117 273.5)

  • #482700

    #482700

    oklch(30.9% 0.07 64)

  • #293600

    #293600

    oklch(31% 0.076 123.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #20266A

    #20266A

    oklch(31% 0.117 273.5)

  • #5C0E00

    #5C0E00

    oklch(30.9% 0.113 33.4)

  • #003B1C

    #003B1C

    oklch(30.9% 0.079 153.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #20266A

    #20266A

    oklch(31% 0.117 273.5)

  • #5B072A

    #5B072A

    oklch(30.9% 0.116 3.4)

  • #3B2F00

    #3B2F00

    oklch(31% 0.063 93.5)

  • #003933

    #003933

    oklch(30.9% 0.055 183.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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