#4158B7

Closest named color: Iris (#6258C4). oklch(49.5% 0.152 269.8), rgb(65, 88, 183).

Aa

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

About this color

#4158B7 is a medium-dark, vivid blue. In OKLCH its lightness is 49%, its chroma 0.152 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Iris (#6258C4), ΔE 0.051 away. White text reads best on it, at 6.35:1.

Hue familyBlues
Lightnessmedium-dark (49%)
Chromavivid (0.152)
Temperaturecool
Nearest nameIris (#6258C4)
Black text3.30:1
White text6.35:1

Values

HEX#4158B7
RGBrgb(65, 88, 183)
HSLhsl(228, 48%, 49%)
OKLCHoklch(49.5% 0.152 269.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 #4158B7 6.35:1 AA Lc -86.4 Fine for body text
Black text on #4158B7 3.30:1 AA large text Lc 22.8 Dividers and decoration only
#4158B7 text on white 6.35:1 AA Lc 81.3 Fine for body text
#4158B7 text on black 3.30:1 AA large text Lc -20.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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4EAF9

    oklch(93.7% 0.021 268.4)

  3. Step 200

    200

    #CED9F5

    oklch(88.6% 0.04 268.5)

  4. Step 300

    300

    #AEBFF1

    oklch(80.9% 0.073 270.1)

  5. Step 400

    400

    #849CEA

    oklch(70.6% 0.118 270.2)

  6. Step 500

    500

    #6682E4

    oklch(63.1% 0.151 269.7)

  7. Step 600

    600

    #4F69D2

    oklch(55.6% 0.164 269.9)

  8. Step 700

    700 (this color)

    #4158B7

    oklch(49.5% 0.152 269.8)

  9. Step 800

    800

    #354893

    oklch(42.8% 0.125 269.8)

  10. Step 900

    900

    #2D3D75

    oklch(37.7% 0.098 269.3)

  11. Step 950

    950

    #1B2445

    oklch(27.1% 0.063 270.3)

Export this scale for Tailwind in the Tailwind colors tool

#4158B7 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)#1F65BA0.040
Deuteranopia (no green cones)#005AB50.043
Tritanopia (no blue cones)#006E7F0.127
Achromatopsia (no color)#5F5F5F0.152

Harmonies

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

Complementary

The opposite hue (180°).

  • #4158B7

    #4158B7

    oklch(49.5% 0.152 269.8)

  • #785E00

    #785E00

    oklch(49.4% 0.101 89.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4158B7

    #4158B7

    oklch(49.5% 0.152 269.8)

  • #00699B

    #00699B

    oklch(49.6% 0.113 239.6)

  • #7048AA

    #7048AA

    oklch(49.5% 0.152 299.7)

Open the analogous palette in the generator

Split complementary

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

  • #4158B7

    #4158B7

    oklch(49.5% 0.152 269.8)

  • #904F00

    #904F00

    oklch(49.5% 0.116 60.3)

  • #5A6B00

    #5A6B00

    oklch(49.6% 0.118 120)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4158B7

    #4158B7

    oklch(49.5% 0.152 269.8)

  • #A73528

    #A73528

    oklch(49.6% 0.152 29.9)

  • #007633

    #007633

    oklch(49.4% 0.137 149.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4158B7

    #4158B7

    oklch(49.5% 0.152 269.8)

  • #A2325E

    #A2325E

    oklch(49.6% 0.152 0.3)

  • #785E00

    #785E00

    oklch(49.4% 0.101 89.8)

  • #007263

    #007263

    oklch(49.4% 0.09 179.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4158B7 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.