#3A4271

Closest named color: Twilight Blue (#0A437A). oklch(39.5% 0.08 274.8), rgb(58, 66, 113).

Aa

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

About this color

#3A4271 is a dark, moderately saturated blue. In OKLCH its lightness is 40%, its chroma 0.080 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight Blue (#0A437A), ΔE 0.048 away. White text reads best on it, at 9.55:1.

Hue familyBlues
Lightnessdark (40%)
Chromamoderately saturated (0.080)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text2.19:1
White text9.55:1

Values

HEX#3A4271
RGBrgb(58, 66, 113)
HSLhsl(231, 32%, 34%)
OKLCHoklch(39.5% 0.08 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 #3A4271 9.55:1 AAA Lc -96.3 Preferred for body text
Black text on #3A4271 2.19:1 Fails Lc 11.9 Not readable
#3A4271 text on white 9.55:1 AAA Lc 92.0 Preferred for body text
#3A4271 text on black 2.19:1 Fails Lc -10.4 Not readable

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 900.

  1. Step 50

    50

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E6E9F6

    oklch(93.6% 0.018 275.6)

  3. Step 200

    200

    #D2D8F0

    oklch(88.5% 0.034 274.5)

  4. Step 300

    300

    #B5BEE8

    oklch(80.9% 0.06 275.5)

  5. Step 400

    400

    #8F9CDD

    oklch(70.8% 0.096 275)

  6. Step 500

    500

    #7482D3

    oklch(63.1% 0.123 274.9)

  7. Step 600

    600

    #5D6AC0

    oklch(55.5% 0.133 274.7)

  8. Step 700

    700

    #4D58A6

    oklch(49.1% 0.124 274.8)

  9. Step 800

    800

    #3F4886

    oklch(42.6% 0.103 275)

  10. Step 900

    900 (this color)

    #3A4271

    oklch(39.5% 0.08 274.8)

  11. Step 950

    950

    #1F243F

    oklch(27% 0.051 274.5)

Export this scale for Tailwind in the Tailwind colors tool

#3A4271 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)#3048730.020
Deuteranopia (no green cones)#2C43700.019
Tritanopia (no blue cones)#264C540.071
Achromatopsia (no color)#4545450.080

Harmonies

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

Complementary

The opposite hue (180°).

  • #3A4271

    #3A4271

    oklch(39.5% 0.08 274.8)

  • #544502

    #544502

    oklch(39.5% 0.08 94.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #3A4271

    #3A4271

    oklch(39.5% 0.08 274.8)

  • #1A4A6E

    #1A4A6E

    oklch(39.5% 0.08 244.7)

  • #503A69

    #503A69

    oklch(39.4% 0.081 304.5)

Open the analogous palette in the generator

Split complementary

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

  • #3A4271

    #3A4271

    oklch(39.5% 0.08 274.8)

  • #633C0E

    #633C0E

    oklch(39.5% 0.08 65.1)

  • #3D4E18

    #3D4E18

    oklch(39.7% 0.081 124.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #3A4271

    #3A4271

    oklch(39.5% 0.08 274.8)

  • #6B3528

    #6B3528

    oklch(39.6% 0.08 34.6)

  • #1B5333

    #1B5333

    oklch(39.6% 0.08 154.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #3A4271

    #3A4271

    oklch(39.5% 0.08 274.8)

  • #693241

    #693241

    oklch(39.4% 0.08 4.1)

  • #544502

    #544502

    oklch(39.5% 0.08 94.6)

  • #00524B

    #00524B

    oklch(39.4% 0.07 185)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #3A4271 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.