#3158AD

Closest named color: Denim Blue (#3B5B92). oklch(47.9% 0.143 263.4), rgb(49, 88, 173).

Aa

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

About this color

#3158AD is a medium-dark, vivid blue. In OKLCH its lightness is 48%, its chroma 0.143 and its hue 263°. Its hue sits on the cool side of the wheel. The nearest named color is Denim Blue (#3B5B92), ΔE 0.047 away. White text reads best on it, at 6.70:1.

Hue familyBlues
Lightnessmedium-dark (48%)
Chromavivid (0.143)
Temperaturecool
Nearest nameDenim Blue (#3B5B92)
Black text3.12:1
White text6.70:1

Values

HEX#3158AD
RGBrgb(49, 88, 173)
HSLhsl(221, 56%, 44%)
OKLCHoklch(47.9% 0.143 263.4)

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 #3158AD 6.70:1 AA Lc -87.8 Fine for body text
Black text on #3158AD 3.12:1 AA large text Lc 21.3 Dividers and decoration only
#3158AD text on white 6.70:1 AA Lc 82.7 Fine for body text
#3158AD text on black 3.12:1 AA large text Lc -19.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 700.

  1. Step 50

    50

    #F2F6FC

    oklch(97.2% 0.009 258.3)

  2. Step 100

    100

    #E3EAF8

    oklch(93.6% 0.02 264.5)

  3. Step 200

    200

    #CCDAF3

    oklch(88.6% 0.038 262.1)

  4. Step 300

    300

    #AAC1EE

    oklch(80.9% 0.069 263.7)

  5. Step 400

    400

    #7CA0E6

    oklch(70.8% 0.111 263)

  6. Step 500

    500

    #5C86DF

    oklch(63.1% 0.142 263.7)

  7. Step 600

    600

    #426ECC

    oklch(55.6% 0.154 263.4)

  8. Step 700

    700 (this color)

    #3158AD

    oklch(47.9% 0.143 263.4)

  9. Step 800

    800

    #2B4B8F

    oklch(42.6% 0.119 263.3)

  10. Step 900

    900

    #273F72

    oklch(37.6% 0.092 263.6)

  11. Step 950

    950

    #172543

    oklch(26.9% 0.059 264)

Export this scale for Tailwind in the Tailwind colors tool

#3158AD 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)#2962B00.027
Deuteranopia (no green cones)#0056AB0.030
Tritanopia (no blue cones)#006C7A0.115
Achromatopsia (no color)#5C5C5C0.143

Harmonies

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

Complementary

The opposite hue (180°).

  • #3158AD

    #3158AD

    oklch(47.9% 0.143 263.4)

  • #785700

    #785700

    oklch(47.9% 0.098 82.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #3158AD

    #3158AD

    oklch(47.9% 0.143 263.4)

  • #00668C

    #00668C

    oklch(48% 0.099 232.9)

  • #6349A5

    #6349A5

    oklch(48% 0.142 293.3)

Open the analogous palette in the generator

Split complementary

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

  • #3158AD

    #3158AD

    oklch(47.9% 0.143 263.4)

  • #904600

    #904600

    oklch(47.9% 0.121 53.4)

  • #5E6300

    #5E6300

    oklch(47.9% 0.107 113.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #3158AD

    #3158AD

    oklch(47.9% 0.143 263.4)

  • #9E3234

    #9E3234

    oklch(47.8% 0.143 23.4)

  • #19711D

    #19711D

    oklch(48.1% 0.144 143.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #3158AD

    #3158AD

    oklch(47.9% 0.143 263.4)

  • #973264

    #973264

    oklch(48% 0.144 353.3)

  • #785700

    #785700

    oklch(47.9% 0.098 82.9)

  • #006E59

    #006E59

    oklch(48% 0.092 173.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #3158AD 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.