#504CB2
Closest named color: Blue With A Hint Of Purple (#533CC6). oklch(47.8% 0.157 280.4), rgb(80, 76, 178).
Aa
White text reads best on this color (6.95:1).
About this color
#504CB2 is a medium-dark, vivid purple. In OKLCH its lightness is 48%, its chroma 0.157 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.047 away. White text reads best on it, at 6.95:1.
| Hue family | Purples |
| Lightness | medium-dark (48%) |
| Chroma | vivid (0.157) |
| Temperature | cool |
| Nearest name | Blue With A Hint Of Purple (#533CC6) |
| Black text | 3.01:1 |
| White text | 6.95:1 |
Values
| HEX | #504CB2 |
| RGB | rgb(80, 76, 178) |
| HSL | hsl(242, 40%, 50%) |
| OKLCH | oklch(47.8% 0.157 280.4) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #504CB2 | 6.95:1 | AA | Lc -88.7 | Fine for body text |
| Black text on #504CB2 | 3.01:1 | AA large text | Lc 20.3 | Dividers and decoration only |
| #504CB2 text on white | 6.95:1 | AA | Lc 83.8 | Fine for body text |
| #504CB2 text on black | 3.01:1 | AA large text | Lc -18.2 | 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.
-
Step 50
50
#F4F5FC
oklch(97.1% 0.009 279.7)
-
Step 100
100
#E7E9F9
oklch(93.7% 0.022 280.3)
-
Step 200
200
#D3D7F5
oklch(88.5% 0.041 279.5)
-
Step 300
300
#B7BCF2
oklch(81% 0.076 280.4)
-
Step 400
400
#9397EB
oklch(70.7% 0.122 280.7)
-
Step 500
500
#7A7BE4
oklch(63.1% 0.155 280.6)
-
Step 600
600
#6462D2
oklch(55.7% 0.168 280.2)
-
Step 700
700 (this color)
#504CB2
oklch(47.8% 0.157 280.4)
-
Step 800
800
#444294
oklch(42.7% 0.131 280.4)
-
Step 900
900
#393976
oklch(37.8% 0.102 280.4)
-
Step 950
950
#212245
oklch(27.1% 0.064 280)
#504CB2 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #005DB5 | 0.070 |
| Deuteranopia (no green cones) | #0056B0 | 0.068 |
| Tritanopia (no blue cones) | #216477 | 0.137 |
| Achromatopsia (no color) | #595959 | 0.158 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #504CB2
#504CB2
oklch(47.8% 0.157 280.4)
- #6A5E00
#6A5E00
oklch(47.9% 0.1 100.7)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #504CB2, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Blue With A Hint Of Purple #533CC6 ΔE 0.047
- Bluey Purple #6241C7 ΔE 0.048
- Iris #6258C4 ΔE 0.050
- Blueberry #464196 ΔE 0.054
- Blurple #5539CC ΔE 0.056
- Majorelle Blue #3F37C9 ΔE 0.065
- Twilight #4E518B ΔE 0.066
- Warm Blue #4B57DB ΔE 0.068
Use #504CB2 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.