#338FBA

Closest named color: Blue NCS (#118AB2). oklch(61.5% 0.107 232.8), rgb(51, 143, 186).

Aa

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

About this color

#338FBA is a medium-dark, moderately saturated blue. In OKLCH its lightness is 61%, its chroma 0.107 and its hue 233°. Its hue sits on the cool side of the wheel. The nearest named color is Blue NCS (#118AB2), ΔE 0.025 away. Black text reads best on it, at 5.77:1.

Hue familyBlues
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.107)
Temperaturecool
Nearest nameBlue NCS (#118AB2)
Black text5.77:1
White text3.63:1

Values

HEX#338FBA
RGBrgb(51, 143, 186)
HSLhsl(199, 57%, 46%)
OKLCHoklch(61.5% 0.107 232.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 #338FBA 3.63:1 AA large text Lc -69.1 Content text, not long reading
Black text on #338FBA 5.77:1 AA Lc 40.5 Non-text elements, placeholder text
#338FBA text on white 3.63:1 AA large text Lc 63.6 Content text, not long reading
#338FBA text on black 5.77:1 AA Lc -38.1 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

    #F1F6F9

    oklch(97% 0.007 233.6)

  2. Step 100

    100

    #E0ECF2

    oklch(93.6% 0.015 229)

  3. Step 200

    200

    #C7DDE9

    oklch(88.5% 0.029 231.5)

  4. Step 300

    300

    #A0C7DD

    oklch(80.9% 0.052 233)

  5. Step 400

    400

    #69AACC

    oklch(70.7% 0.083 232.5)

  6. Step 500

    500 (this color)

    #338FBA

    oklch(61.5% 0.107 232.8)

  7. Step 600

    600

    #007DAB

    oklch(55.5% 0.115 233.2)

  8. Step 700

    700

    #006990

    oklch(49% 0.101 232.9)

  9. Step 800

    800

    #005677

    oklch(42.6% 0.088 233.1)

  10. Step 900

    900

    #104760

    oklch(37.6% 0.069 233.2)

  11. Step 950

    950

    #0C2A38

    oklch(27% 0.044 231.9)

Export this scale for Tailwind in the Tailwind colors tool

#338FBA 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)#7A8EBC0.070
Deuteranopia (no green cones)#6780B90.059
Tritanopia (no blue cones)#009B9D0.067
Achromatopsia (no color)#8686860.107

Harmonies

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

Complementary

The opposite hue (180°).

  • #338FBA

    #338FBA

    oklch(61.5% 0.107 232.8)

  • #B67144

    #B67144

    oklch(61.4% 0.106 52.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338FBA

    #338FBA

    oklch(61.5% 0.107 232.8)

  • #0097A0

    #0097A0

    oklch(61.6% 0.105 202.3)

  • #6284C5

    #6284C5

    oklch(61.6% 0.106 262.6)

Open the analogous palette in the generator

Split complementary

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

  • #338FBA

    #338FBA

    oklch(61.5% 0.107 232.8)

  • #BC6966

    #BC6966

    oklch(61.4% 0.107 22.8)

  • #A47E2E

    #A47E2E

    oklch(61.5% 0.107 82.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338FBA

    #338FBA

    oklch(61.5% 0.107 232.8)

  • #B6688A

    #B6688A

    oklch(61.5% 0.108 353.1)

  • #858B38

    #858B38

    oklch(61.4% 0.107 113)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338FBA

    #338FBA

    oklch(61.5% 0.107 232.8)

  • #A36EAA

    #A36EAA

    oklch(61.5% 0.107 322.6)

  • #B67144

    #B67144

    oklch(61.4% 0.106 52.6)

  • #5D9559

    #5D9559

    oklch(61.5% 0.106 142.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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