#338AEA

Closest named color: Dark Sky Blue (#448EE4). oklch(63% 0.166 253.8), rgb(51, 138, 234).

Aa

Black text reads best on this color (5.96:1).

About this color

#338AEA is a medium-light, vivid blue. In OKLCH its lightness is 63%, its chroma 0.166 and its hue 254°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Sky Blue (#448EE4), ΔE 0.020 away. Black text reads best on it, at 5.96:1.

Hue familyBlues
Lightnessmedium-light (63%)
Chromavivid (0.166)
Temperaturecool
Nearest nameDark Sky Blue (#448EE4)
Black text5.96:1
White text3.52:1

Values

HEX#338AEA
RGBrgb(51, 138, 234)
HSLhsl(211, 81%, 56%)
OKLCHoklch(63% 0.166 253.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 #338AEA 3.52:1 AA large text Lc -67.8 Content text, not long reading
Black text on #338AEA 5.96:1 AA Lc 41.7 Non-text elements, placeholder text
#338AEA text on white 3.52:1 AA large text Lc 62.3 Content text, not long reading
#338AEA text on black 5.96:1 AA Lc -39.3 Non-text elements, placeholder text

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

  1. Step 50

    50

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #DFEBFA

    oklch(93.6% 0.024 254)

  3. Step 200

    200

    #C5DBF7

    oklch(88.4% 0.045 254.5)

  4. Step 300

    300

    #9CC4F5

    oklch(80.9% 0.082 253.8)

  5. Step 400

    400

    #64A4F0

    oklch(70.8% 0.13 253.7)

  6. Step 500

    500 (this color)

    #338AEA

    oklch(63% 0.166 253.8)

  7. Step 600

    600

    #0072D6

    oklch(55.6% 0.176 253.8)

  8. Step 700

    700

    #0060B5

    oklch(49.2% 0.155 253.6)

  9. Step 800

    800

    #004E96

    oklch(42.7% 0.135 253.8)

  10. Step 900

    900

    #0C4279

    oklch(37.8% 0.108 253.4)

  11. Step 950

    950

    #0A2747

    oklch(27.1% 0.069 253.6)

Export this scale for Tailwind in the Tailwind colors tool

#338AEA 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)#5B91EE0.041
Deuteranopia (no green cones)#3B81E80.023
Tritanopia (no blue cones)#00A1AE0.126
Achromatopsia (no color)#8989890.166

Harmonies

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

Complementary

The opposite hue (180°).

  • #338AEA

    #338AEA

    oklch(63% 0.166 253.8)

  • #B87B00

    #B87B00

    oklch(63% 0.133 74.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338AEA

    #338AEA

    oklch(63% 0.166 253.8)

  • #0098BE

    #0098BE

    oklch(63.1% 0.118 223.7)

  • #7F77E9

    #7F77E9

    oklch(63% 0.167 283.7)

Open the analogous palette in the generator

Split complementary

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

  • #338AEA

    #338AEA

    oklch(63% 0.166 253.8)

  • #D86023

    #D86023

    oklch(63% 0.166 43.8)

  • #978C00

    #978C00

    oklch(63% 0.133 104)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338AEA

    #338AEA

    oklch(63% 0.166 253.8)

  • #DA566A

    #DA566A

    oklch(63% 0.166 14.1)

  • #5D9D20

    #5D9D20

    oklch(62.9% 0.166 133.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338AEA

    #338AEA

    oklch(63% 0.166 253.8)

  • #CB59A2

    #CB59A2

    oklch(63% 0.167 343.7)

  • #B87B00

    #B87B00

    oklch(63% 0.133 74.4)

  • #00A273

    #00A273

    oklch(63.1% 0.134 164)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #338AEA 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.