#4045BC

Closest named color: Majorelle Blue (#3F37C9). oklch(46.2% 0.183 274.8), rgb(64, 69, 188).

Aa

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

About this color

#4045BC is a medium-dark, vivid blue. In OKLCH its lightness is 46%, its chroma 0.183 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Majorelle Blue (#3F37C9), ΔE 0.034 away. White text reads best on it, at 7.51:1.

Hue familyBlues
Lightnessmedium-dark (46%)
Chromavivid (0.183)
Temperaturecool
Nearest nameMajorelle Blue (#3F37C9)
Black text2.79:1
White text7.51:1

Values

HEX#4045BC
RGBrgb(64, 69, 188)
HSLhsl(238, 49%, 49%)
OKLCHoklch(46.2% 0.183 274.8)

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 #4045BC 7.51:1 AAA Lc -90.4 Preferred for body text
Black text on #4045BC 2.79:1 Fails Lc 18.5 Dividers and decoration only
#4045BC text on white 7.51:1 AAA Lc 85.6 Fine for body text
#4045BC text on black 2.79:1 Fails Lc -16.5 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

    #F3F5FE

    oklch(97.1% 0.012 276.1)

  2. Step 100

    100

    #E4E9FC

    oklch(93.6% 0.026 274.1)

  3. Step 200

    200

    #CFD7FA

    oklch(88.4% 0.049 275.2)

  4. Step 300

    300

    #AFBDFA

    oklch(80.9% 0.088 274.3)

  5. Step 400

    400

    #8798F8

    oklch(70.7% 0.141 274.6)

  6. Step 500

    500

    #6C7BF5

    oklch(63.2% 0.181 274.7)

  7. Step 600

    600

    #5660E4

    oklch(55.7% 0.197 274.7)

  8. Step 700

    700 (this color)

    #4045BC

    oklch(46.2% 0.183 274.8)

  9. Step 800

    800

    #3A41A0

    oklch(42.7% 0.152 274.8)

  10. Step 900

    900

    #31387F

    oklch(37.7% 0.119 274.9)

  11. Step 950

    950

    #1C224A

    oklch(27% 0.074 274)

Export this scale for Tailwind in the Tailwind colors tool

#4045BC 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)#005AC00.060
Deuteranopia (no green cones)#004FBA0.049
Tritanopia (no blue cones)#00637A0.150
Achromatopsia (no color)#5555550.184

Harmonies

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

Complementary

The opposite hue (180°).

  • #4045BC

    #4045BC

    oklch(46.2% 0.183 274.8)

  • #6A5700

    #6A5700

    oklch(46.2% 0.095 94.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4045BC

    #4045BC

    oklch(46.2% 0.183 274.8)

  • #005D94

    #005D94

    oklch(46.2% 0.116 244.7)

  • #7131A8

    #7131A8

    oklch(46.2% 0.182 304.8)

Open the analogous palette in the generator

Split complementary

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

  • #4045BC

    #4045BC

    oklch(46.2% 0.183 274.8)

  • #804A00

    #804A00

    oklch(46.3% 0.104 64.4)

  • #4A6300

    #4A6300

    oklch(46.2% 0.116 124.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4045BC

    #4045BC

    oklch(46.2% 0.183 274.8)

  • #9F2500

    #9F2500

    oklch(46.2% 0.163 34.7)

  • #006B3A

    #006B3A

    oklch(46.3% 0.116 154.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4045BC

    #4045BC

    oklch(46.2% 0.183 274.8)

  • #A3054B

    #A3054B

    oklch(46.2% 0.183 4.9)

  • #6A5700

    #6A5700

    oklch(46.2% 0.095 94.2)

  • #00675E

    #00675E

    oklch(46.2% 0.082 184.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4045BC 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.