#505CB1

Closest named color: Iris (#6258C4). oklch(50.8% 0.134 274.6), rgb(80, 92, 177).

Aa

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

About this color

#505CB1 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 51%, its chroma 0.134 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Iris (#6258C4), ΔE 0.041 away. White text reads best on it, at 5.98:1.

Hue familyBlues
Lightnessmedium-dark (51%)
Chromamoderately saturated (0.134)
Temperaturecool
Nearest nameIris (#6258C4)
Black text3.50:1
White text5.98:1

Values

HEX#505CB1
RGBrgb(80, 92, 177)
HSLhsl(233, 38%, 50%)
OKLCHoklch(50.8% 0.134 274.6)

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 #505CB1 5.98:1 AA Lc -84.9 Fine for body text
Black text on #505CB1 3.50:1 AA large text Lc 24.3 Dividers and decoration only
#505CB1 text on white 5.98:1 AA Lc 79.7 Fine for body text
#505CB1 text on black 3.50:1 AA large text Lc -22.1 Dividers and decoration only

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 700.

  1. Step 50

    50

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E6E9F7

    oklch(93.6% 0.019 276.3)

  3. Step 200

    200

    #D2D8F2

    oklch(88.6% 0.036 275.3)

  4. Step 300

    300

    #B4BEEB

    oklch(80.9% 0.065 275.1)

  5. Step 400

    400

    #8D9BE1

    oklch(70.6% 0.104 274.8)

  6. Step 500

    500

    #7281D9

    oklch(63.1% 0.133 274.6)

  7. Step 600

    600

    #5C69C6

    oklch(55.6% 0.144 274.8)

  8. Step 700

    700 (this color)

    #505CB1

    oklch(50.8% 0.134 274.6)

  9. Step 800

    800

    #3E478B

    oklch(42.6% 0.112 274.9)

  10. Step 900

    900

    #343C6F

    oklch(37.6% 0.087 274.7)

  11. Step 950

    950

    #1F2441

    oklch(27.1% 0.054 274.8)

Export this scale for Tailwind in the Tailwind colors tool

#505CB1 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)#3467B40.039
Deuteranopia (no green cones)#285FAF0.043
Tritanopia (no blue cones)#1F6F7E0.119
Achromatopsia (no color)#6363630.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #505CB1

    #505CB1

    oklch(50.8% 0.134 274.6)

  • #796400

    #796400

    oklch(50.9% 0.104 94.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #505CB1

    #505CB1

    oklch(50.8% 0.134 274.6)

  • #006BA8

    #006BA8

    oklch(50.9% 0.126 244.3)

  • #774EA2

    #774EA2

    oklch(50.7% 0.134 304.6)

Open the analogous palette in the generator

Split complementary

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

  • #505CB1

    #505CB1

    oklch(50.8% 0.134 274.6)

  • #915500

    #915500

    oklch(50.7% 0.114 64.8)

  • #567100

    #567100

    oklch(50.8% 0.127 124.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #505CB1

    #505CB1

    oklch(50.8% 0.134 274.6)

  • #A4432C

    #A4432C

    oklch(50.9% 0.134 34.7)

  • #007A43

    #007A43

    oklch(50.9% 0.127 154.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #505CB1

    #505CB1

    oklch(50.8% 0.134 274.6)

  • #A13E5C

    #A13E5C

    oklch(50.8% 0.134 4.3)

  • #796400

    #796400

    oklch(50.9% 0.104 94.5)

  • #00766C

    #00766C

    oklch(50.9% 0.09 184.6)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #505CB1.

Similar named colors

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

Use #505CB1 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.