#334AB2

Closest named color: Blue Blue (#2242C7). oklch(45.5% 0.167 269.2), rgb(51, 74, 178).

Aa

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

About this color

#334AB2 is a medium-dark, vivid blue. In OKLCH its lightness is 46%, its chroma 0.167 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Blue Blue (#2242C7), ΔE 0.042 away. White text reads best on it, at 7.60:1.

Hue familyBlues
Lightnessmedium-dark (46%)
Chromavivid (0.167)
Temperaturecool
Nearest nameBlue Blue (#2242C7)
Black text2.76:1
White text7.60:1

Values

HEX#334AB2
RGBrgb(51, 74, 178)
HSLhsl(229, 55%, 45%)
OKLCHoklch(45.5% 0.167 269.2)

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 #334AB2 7.60:1 AAA Lc -90.8 Preferred for body text
Black text on #334AB2 2.76:1 Fails Lc 18.1 Dividers and decoration only
#334AB2 text on white 7.60:1 AAA Lc 85.9 Fine for body text
#334AB2 text on black 2.76:1 Fails Lc -16.1 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

    #F2F5FF

    oklch(97.1% 0.014 272.7)

  2. Step 100

    100

    #E2EAFE

    oklch(93.7% 0.028 268.4)

  3. Step 200

    200

    #CAD8FE

    oklch(88.4% 0.055 269.3)

  4. Step 300

    300

    #A7BEFF

    oklch(80.8% 0.096 269.2)

  5. Step 400

    400

    #7A9AFF

    oklch(70.7% 0.152 269)

  6. Step 500

    500

    #5B7CFF

    oklch(63.1% 0.198 269.4)

  7. Step 600

    600

    #4360F0

    oklch(55.6% 0.218 269.2)

  8. Step 700

    700

    #364ED1

    oklch(49.1% 0.202 269.3)

  9. Step 800

    800 (this color)

    #334AB2

    oklch(45.5% 0.167 269.2)

  10. Step 900

    900

    #273985

    oklch(37.7% 0.129 269.2)

  11. Step 950

    950

    #16224E

    oklch(26.9% 0.083 268.8)

Export this scale for Tailwind in the Tailwind colors tool

#334AB2 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)#005AB60.045
Deuteranopia (no green cones)#004EB00.032
Tritanopia (no blue cones)#0064760.136
Achromatopsia (no color)#5454540.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #334AB2

    #334AB2

    oklch(45.5% 0.167 269.2)

  • #6B5300

    #6B5300

    oklch(45.4% 0.093 89.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #334AB2

    #334AB2

    oklch(45.5% 0.167 269.2)

  • #005D89

    #005D89

    oklch(45.5% 0.103 239)

  • #6638A4

    #6638A4

    oklch(45.6% 0.166 299.3)

Open the analogous palette in the generator

Split complementary

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

  • #334AB2

    #334AB2

    oklch(45.5% 0.167 269.2)

  • #814500

    #814500

    oklch(45.5% 0.107 59.3)

  • #515E00

    #515E00

    oklch(45.5% 0.106 118.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #334AB2

    #334AB2

    oklch(45.5% 0.167 269.2)

  • #9F1C14

    #9F1C14

    oklch(45.5% 0.167 29.1)

  • #00692B

    #00692B

    oklch(45.5% 0.128 149.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #334AB2

    #334AB2

    oklch(45.5% 0.167 269.2)

  • #991954

    #991954

    oklch(45.5% 0.167 359.3)

  • #6B5300

    #6B5300

    oklch(45.4% 0.093 89.3)

  • #006658

    #006658

    oklch(45.7% 0.083 179)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #334AB2 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.