#42517C

Closest named color: Dusk (#4E5481). oklch(44.2% 0.074 268.6), rgb(66, 81, 124).

Aa

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

About this color

#42517C is a dark, moderately saturated blue. In OKLCH its lightness is 44%, its chroma 0.074 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk (#4E5481), ΔE 0.022 away. White text reads best on it, at 7.77:1.

Hue familyBlues
Lightnessdark (44%)
Chromamoderately saturated (0.074)
Temperaturecool
Nearest nameDusk (#4E5481)
Black text2.69:1
White text7.77:1

Values

HEX#42517C
RGBrgb(66, 81, 124)
HSLhsl(224, 31%, 37%)
OKLCHoklch(44.2% 0.074 268.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 #42517C 7.77:1 AAA Lc -91.7 Preferred for body text
Black text on #42517C 2.69:1 Fails Lc 17.1 Dividers and decoration only
#42517C text on white 7.77:1 AAA Lc 86.9 Fine for body text
#42517C text on black 2.69:1 Fails Lc -15.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 800.

  1. Step 50

    50

    #F4F5F9

    oklch(97.1% 0.005 275)

  2. Step 100

    100

    #E6EAF2

    oklch(93.6% 0.012 264.5)

  3. Step 200

    200

    #D2D9EA

    oklch(88.5% 0.025 267.9)

  4. Step 300

    300

    #B5C0DD

    oklch(80.9% 0.043 269)

  5. Step 400

    400

    #8F9FCC

    oklch(70.6% 0.069 269.4)

  6. Step 500

    500

    #7387BF

    oklch(63% 0.088 268.7)

  7. Step 600

    600

    #5C70AC

    oklch(55.5% 0.097 269.1)

  8. Step 700

    700

    #4C5E93

    oklch(49.1% 0.088 268.8)

  9. Step 800

    800 (this color)

    #42517C

    oklch(44.2% 0.074 268.6)

  10. Step 900

    900

    #354060

    oklch(37.7% 0.057 269.1)

  11. Step 950

    950

    #1F2638

    oklch(27.1% 0.035 267.7)

Export this scale for Tailwind in the Tailwind colors tool

#42517C 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)#41557E0.012
Deuteranopia (no green cones)#3C507B0.009
Tritanopia (no blue cones)#2D5A610.065
Achromatopsia (no color)#5252520.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #42517C

    #42517C

    oklch(44.2% 0.074 268.6)

  • #64511D

    #64511D

    oklch(44.3% 0.074 88.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #42517C

    #42517C

    oklch(44.2% 0.074 268.6)

  • #275877

    #275877

    oklch(44.1% 0.073 239.2)

  • #584A76

    #584A76

    oklch(44.2% 0.072 298)

Open the analogous palette in the generator

Split complementary

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

  • #42517C

    #42517C

    oklch(44.2% 0.074 268.6)

  • #714827

    #714827

    oklch(44.1% 0.073 58.1)

  • #4F5927

    #4F5927

    oklch(44.3% 0.074 118.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #42517C

    #42517C

    oklch(44.2% 0.074 268.6)

  • #77423B

    #77423B

    oklch(44.2% 0.075 28.4)

  • #345E3C

    #345E3C

    oklch(44.1% 0.073 148.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #42517C

    #42517C

    oklch(44.2% 0.074 268.6)

  • #744152

    #744152

    oklch(44.2% 0.074 359.2)

  • #64511D

    #64511D

    oklch(44.3% 0.074 88.8)

  • #156053

    #156053

    oklch(44.1% 0.074 178.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #42517C 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.