#338AB2

Closest named color: Blue NCS (#118AB2). oklch(59.9% 0.102 232.1), rgb(51, 138, 178).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.102)
Temperaturecool
Nearest nameBlue NCS (#118AB2)
Black text5.41:1
White text3.87:1

Values

HEX#338AB2
RGBrgb(51, 138, 178)
HSLhsl(199, 55%, 45%)
OKLCHoklch(59.9% 0.102 232.1)

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 #338AB2 3.87:1 AA large text Lc -71.4 Content text, not long reading
Black text on #338AB2 5.41:1 AA Lc 38.2 Non-text elements, placeholder text
#338AB2 text on white 3.87:1 AA large text Lc 65.9 Content text, not long reading
#338AB2 text on black 5.41:1 AA Lc -35.8 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

    #E1ECF2

    oklch(93.7% 0.014 231.2)

  3. Step 200

    200

    #C8DDE8

    oklch(88.5% 0.027 230.4)

  4. Step 300

    300

    #A1C7DC

    oklch(80.9% 0.05 232.4)

  5. Step 400

    400

    #6CAACA

    oklch(70.8% 0.079 231.9)

  6. Step 500

    500 (this color)

    #338AB2

    oklch(59.9% 0.102 232.1)

  7. Step 600

    600

    #0E7DA8

    oklch(55.5% 0.11 232.2)

  8. Step 700

    700

    #006A8F

    oklch(49.2% 0.1 231.3)

  9. Step 800

    800

    #065675

    oklch(42.6% 0.085 232.2)

  10. Step 900

    900

    #14475F

    oklch(37.6% 0.067 233.2)

  11. Step 950

    950

    #0E2A37

    oklch(27% 0.041 231.2)

Export this scale for Tailwind in the Tailwind colors tool

#338AB2 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)#7688B40.067
Deuteranopia (no green cones)#657CB10.057
Tritanopia (no blue cones)#0095970.063
Achromatopsia (no color)#8181810.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #338AB2

    #338AB2

    oklch(59.9% 0.102 232.1)

  • #AF6E44

    #AF6E44

    oklch(59.9% 0.101 52.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338AB2

    #338AB2

    oklch(59.9% 0.102 232.1)

  • #03919A

    #03919A

    oklch(59.8% 0.101 202.6)

  • #5E7FBD

    #5E7FBD

    oklch(59.8% 0.103 262.3)

Open the analogous palette in the generator

Split complementary

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

  • #338AB2

    #338AB2

    oklch(59.9% 0.102 232.1)

  • #B56664

    #B56664

    oklch(59.9% 0.102 22.1)

  • #9E792F

    #9E792F

    oklch(59.8% 0.102 81.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338AB2

    #338AB2

    oklch(59.9% 0.102 232.1)

  • #AE6586

    #AE6586

    oklch(59.8% 0.102 352.1)

  • #818638

    #818638

    oklch(59.9% 0.102 112.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338AB2

    #338AB2

    oklch(59.9% 0.102 232.1)

  • #9C6BA4

    #9C6BA4

    oklch(59.9% 0.101 321.7)

  • #AF6E44

    #AF6E44

    oklch(59.9% 0.101 52.6)

  • #5B8F56

    #5B8F56

    oklch(59.8% 0.101 142.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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