#338BF0

Closest named color: Dark Sky Blue (#448EE4). oklch(63.6% 0.173 254.6), rgb(51, 139, 240).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-light (64%)
Chromavivid (0.173)
Temperaturecool
Nearest nameDark Sky Blue (#448EE4)
Black text6.09:1
White text3.44:1

Values

HEX#338BF0
RGBrgb(51, 139, 240)
HSLhsl(212, 86%, 57%)
OKLCHoklch(63.6% 0.173 254.6)

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 #338BF0 3.44:1 AA large text Lc -67.0 Content text, not long reading
Black text on #338BF0 6.09:1 AA Lc 42.5 Non-text elements, placeholder text
#338BF0 text on white 3.44:1 AA large text Lc 61.5 Content text, not long reading
#338BF0 text on black 6.09:1 AA Lc -40.2 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

    #F0F6FD

    oklch(97.1% 0.011 252.1)

  2. Step 100

    100

    #DFEBFA

    oklch(93.6% 0.024 254)

  3. Step 200

    200

    #C5DBF8

    oklch(88.4% 0.047 255.4)

  4. Step 300

    300

    #9CC4F7

    oklch(81% 0.084 254.7)

  5. Step 400

    400

    #63A3F3

    oklch(70.7% 0.135 254.8)

  6. Step 500

    500 (this color)

    #338BF0

    oklch(63.6% 0.173 254.6)

  7. Step 600

    600

    #0071D9

    oklch(55.6% 0.181 254.6)

  8. Step 700

    700

    #005FB8

    oklch(49.1% 0.16 254.6)

  9. Step 800

    800

    #004D98

    oklch(42.6% 0.139 254.8)

  10. Step 900

    900

    #0B417B

    oklch(37.7% 0.112 254.5)

  11. Step 950

    950

    #0A2748

    oklch(27.1% 0.07 254.2)

Export this scale for Tailwind in the Tailwind colors tool

#338BF0 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)#5893F40.039
Deuteranopia (no green cones)#3582EE0.023
Tritanopia (no blue cones)#00A3B20.130
Achromatopsia (no color)#8A8A8A0.173

Harmonies

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

Complementary

The opposite hue (180°).

  • #338BF0

    #338BF0

    oklch(63.6% 0.173 254.6)

  • #BA7D00

    #BA7D00

    oklch(63.7% 0.134 74.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338BF0

    #338BF0

    oklch(63.6% 0.173 254.6)

  • #0099C1

    #0099C1

    oklch(63.5% 0.12 224.8)

  • #8277EE

    #8277EE

    oklch(63.6% 0.173 284.5)

Open the analogous palette in the generator

Split complementary

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

  • #338BF0

    #338BF0

    oklch(63.6% 0.173 254.6)

  • #DC601A

    #DC601A

    oklch(63.5% 0.172 44.6)

  • #988E00

    #988E00

    oklch(63.5% 0.135 104.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338BF0

    #338BF0

    oklch(63.6% 0.173 254.6)

  • #DF5569

    #DF5569

    oklch(63.6% 0.172 14.8)

  • #5AA01D

    #5AA01D

    oklch(63.5% 0.172 134.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338BF0

    #338BF0

    oklch(63.6% 0.173 254.6)

  • #D058A3

    #D058A3

    oklch(63.6% 0.173 344.7)

  • #BA7D00

    #BA7D00

    oklch(63.7% 0.134 74.8)

  • #00A476

    #00A476

    oklch(63.7% 0.134 164.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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