#4840B5

Closest named color: Blue With A Hint Of Purple (#533CC6). oklch(45.3% 0.178 279.6), rgb(72, 64, 181).

Aa

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

About this color

#4840B5 is a medium-dark, vivid blue. In OKLCH its lightness is 45%, its chroma 0.178 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.032 away. White text reads best on it, at 7.84:1.

Hue familyBlues
Lightnessmedium-dark (45%)
Chromavivid (0.178)
Temperaturecool
Nearest nameBlue With A Hint Of Purple (#533CC6)
Black text2.67:1
White text7.84:1

Values

HEX#4840B5
RGBrgb(72, 64, 181)
HSLhsl(244, 48%, 48%)
OKLCHoklch(45.3% 0.178 279.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 #4840B5 7.84:1 AAA Lc -91.5 Preferred for body text
Black text on #4840B5 2.67:1 Fails Lc 17.3 Dividers and decoration only
#4840B5 text on white 7.84:1 AAA Lc 86.7 Fine for body text
#4840B5 text on black 2.67:1 Fails Lc -15.4 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 800.

  1. Step 50

    50

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E5E8FE

    oklch(93.5% 0.03 279.6)

  3. Step 200

    200

    #D1D6FF

    oklch(88.5% 0.057 279.7)

  4. Step 300

    300

    #B3BAFF

    oklch(80.8% 0.098 279.5)

  5. Step 400

    400

    #8E93FF

    oklch(70.6% 0.156 279.6)

  6. Step 500

    500

    #7573FF

    oklch(63% 0.202 279.5)

  7. Step 600

    600

    #6153F5

    oklch(55.6% 0.232 279.6)

  8. Step 700

    700

    #5142D5

    oklch(49.2% 0.215 279.6)

  9. Step 800

    800 (this color)

    #4840B5

    oklch(45.3% 0.178 279.6)

  10. Step 900

    900

    #363288

    oklch(37.6% 0.139 279.4)

  11. Step 950

    950

    #1F1E50

    oklch(26.9% 0.089 279.5)

Export this scale for Tailwind in the Tailwind colors tool

#4840B5 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)#0056B90.070
Deuteranopia (no green cones)#004DB30.063
Tritanopia (no blue cones)#005E740.153
Achromatopsia (no color)#5252520.179

Harmonies

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

Complementary

The opposite hue (180°).

  • #4840B5

    #4840B5

    oklch(45.3% 0.178 279.6)

  • #635700

    #635700

    oklch(45.5% 0.095 100)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4840B5

    #4840B5

    oklch(45.3% 0.178 279.6)

  • #005899

    #005899

    oklch(45.3% 0.127 249.7)

  • #742D9E

    #742D9E

    oklch(45.4% 0.178 309.9)

Open the analogous palette in the generator

Split complementary

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

  • #4840B5

    #4840B5

    oklch(45.3% 0.178 279.6)

  • #794B00

    #794B00

    oklch(45.5% 0.099 69.8)

  • #3F6200

    #3F6200

    oklch(45.2% 0.121 129.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4840B5

    #4840B5

    oklch(45.3% 0.178 279.6)

  • #943000

    #943000

    oklch(45.3% 0.143 39.8)

  • #006741

    #006741

    oklch(45.3% 0.103 159.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4840B5

    #4840B5

    oklch(45.3% 0.178 279.6)

  • #A00640

    #A00640

    oklch(45.4% 0.178 9.5)

  • #635700

    #635700

    oklch(45.5% 0.095 100)

  • #006460

    #006460

    oklch(45.4% 0.078 190)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4840B5 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.