#0542A0

Closest named color: Sapphire (#2138AB). oklch(40.9% 0.163 260.3), rgb(5, 66, 160).

Aa

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

About this color

#0542A0 is a dark, vivid blue. In OKLCH its lightness is 41%, its chroma 0.163 and its hue 260°. Its hue sits on the cool side of the wheel. The nearest named color is Sapphire (#2138AB), ΔE 0.031 away. White text reads best on it, at 9.15:1.

Hue familyBlues
Lightnessdark (41%)
Chromavivid (0.163)
Temperaturecool
Nearest nameSapphire (#2138AB)
Black text2.29:1
White text9.15:1

Values

HEX#0542A0
RGBrgb(5, 66, 160)
HSLhsl(216, 94%, 32%)
OKLCHoklch(40.9% 0.163 260.3)

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 #0542A0 9.15:1 AAA Lc -94.7 Preferred for body text
Black text on #0542A0 2.29:1 Fails Lc 13.7 Not readable
#0542A0 text on white 9.15:1 AAA Lc 90.3 Preferred for body text
#0542A0 text on black 2.29:1 Fails Lc -12.0 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 800.

  1. Step 50

    50

    #F1F6FE

    oklch(97.2% 0.012 259.8)

  2. Step 100

    100

    #DFEBFD

    oklch(93.6% 0.028 258.4)

  3. Step 200

    200

    #C5DAFD

    oklch(88.4% 0.054 260.6)

  4. Step 300

    300

    #9DC2FF

    oklch(81% 0.096 260.2)

  5. Step 400

    400

    #679FFF

    oklch(70.7% 0.153 260.6)

  6. Step 500

    500

    #3C83FD

    oklch(63% 0.196 260.5)

  7. Step 600

    600

    #1769EC

    oklch(55.6% 0.212 260.3)

  8. Step 700

    700

    #0756CD

    oklch(49% 0.197 260.3)

  9. Step 800

    800 (this color)

    #0542A0

    oklch(40.9% 0.163 260.3)

  10. Step 900

    900

    #133D83

    oklch(37.6% 0.127 260.2)

  11. Step 950

    950

    #0D254D

    oklch(27.1% 0.08 260.1)

Export this scale for Tailwind in the Tailwind colors tool

#0542A0 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)#004FA30.034
Deuteranopia (no green cones)#00429E0.004
Tritanopia (no blue cones)#005A6A0.124
Achromatopsia (no color)#4848480.163

Harmonies

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

Complementary

The opposite hue (180°).

  • #0542A0

    #0542A0

    oklch(40.9% 0.163 260.3)

  • #624400

    #624400

    oklch(40.9% 0.085 80)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0542A0

    #0542A0

    oklch(40.9% 0.163 260.3)

  • #00516E

    #00516E

    oklch(40.8% 0.082 231)

  • #4E309A

    #4E309A

    oklch(41% 0.163 290.4)

Open the analogous palette in the generator

Split complementary

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

  • #0542A0

    #0542A0

    oklch(40.9% 0.163 260.3)

  • #763400

    #763400

    oklch(40.8% 0.108 50)

  • #4D4E00

    #4D4E00

    oklch(40.9% 0.09 110.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0542A0

    #0542A0

    oklch(40.9% 0.163 260.3)

  • #8D0221

    #8D0221

    oklch(40.8% 0.163 20.2)

  • #155A00

    #155A00

    oklch(40.9% 0.133 140.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0542A0

    #0542A0

    oklch(40.9% 0.163 260.3)

  • #840B56

    #840B56

    oklch(40.9% 0.163 350.2)

  • #624400

    #624400

    oklch(40.9% 0.085 80)

  • #005843

    #005843

    oklch(40.9% 0.081 169.6)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #0542A0.

Similar named colors

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

Use #0542A0 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.