#504CB7

Closest named color: Blue With A Hint Of Purple (#533CC6). oklch(48.2% 0.164 279.9), rgb(80, 76, 183).

Aa

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

About this color

#504CB7 is a medium-dark, vivid blue. In OKLCH its lightness is 48%, its chroma 0.164 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Blue With A Hint Of Purple (#533CC6), ΔE 0.041 away. White text reads best on it, at 6.86:1.

Hue familyBlues
Lightnessmedium-dark (48%)
Chromavivid (0.164)
Temperaturecool
Nearest nameBlue With A Hint Of Purple (#533CC6)
Black text3.05:1
White text6.86:1

Values

HEX#504CB7
RGBrgb(80, 76, 183)
HSLhsl(242, 43%, 51%)
OKLCHoklch(48.2% 0.164 279.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 #504CB7 6.86:1 AA Lc -88.4 Fine for body text
Black text on #504CB7 3.05:1 AA large text Lc 20.7 Dividers and decoration only
#504CB7 text on white 6.86:1 AA Lc 83.4 Fine for body text
#504CB7 text on black 3.05:1 AA large text Lc -18.6 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

    #F4F5FD

    oklch(97.2% 0.011 280.5)

  2. Step 100

    100

    #E6E9F9

    oklch(93.6% 0.022 277.5)

  3. Step 200

    200

    #D3D7F7

    oklch(88.6% 0.044 279.8)

  4. Step 300

    300

    #B6BCF4

    oklch(81% 0.079 279.7)

  5. Step 400

    400

    #9197EE

    oklch(70.7% 0.127 279.6)

  6. Step 500

    500

    #787AE8

    oklch(63% 0.162 279.9)

  7. Step 600

    600

    #6360D7

    oklch(55.6% 0.177 280.1)

  8. Step 700

    700 (this color)

    #504CB7

    oklch(48.2% 0.164 279.9)

  9. Step 800

    800

    #434197

    oklch(42.7% 0.137 279.9)

  10. Step 900

    900

    #383878

    oklch(37.7% 0.106 280)

  11. Step 950

    950

    #212146

    oklch(26.9% 0.067 280.9)

Export this scale for Tailwind in the Tailwind colors tool

#504CB7 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)#005EBB0.070
Deuteranopia (no green cones)#0056B50.067
Tritanopia (no blue cones)#1A657A0.141
Achromatopsia (no color)#5A5A5A0.165

Harmonies

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

Complementary

The opposite hue (180°).

  • #504CB7

    #504CB7

    oklch(48.2% 0.164 279.9)

  • #6C5F00

    #6C5F00

    oklch(48.3% 0.1 100)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #504CB7

    #504CB7

    oklch(48.2% 0.164 279.9)

  • #0060A7

    #0060A7

    oklch(48.2% 0.136 250)

  • #7A3BA2

    #7A3BA2

    oklch(48.2% 0.165 309.8)

Open the analogous palette in the generator

Split complementary

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

  • #504CB7

    #504CB7

    oklch(48.2% 0.164 279.9)

  • #835200

    #835200

    oklch(48.3% 0.104 70.2)

  • #456B00

    #456B00

    oklch(48.1% 0.129 129.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #504CB7

    #504CB7

    oklch(48.2% 0.164 279.9)

  • #A13500

    #A13500

    oklch(48.2% 0.152 39.8)

  • #007048

    #007048

    oklch(48.1% 0.109 160)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #504CB7

    #504CB7

    oklch(48.2% 0.164 279.9)

  • #A52549

    #A52549

    oklch(48.2% 0.164 9.8)

  • #6C5F00

    #6C5F00

    oklch(48.3% 0.1 100)

  • #006D68

    #006D68

    oklch(48.2% 0.083 189.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #504CB7 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.