#338CB4

Closest named color: Blue NCS (#118AB2). oklch(60.5% 0.102 231.6), rgb(51, 140, 180).

Aa

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

About this color

#338CB4 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.017 away. Black text reads best on it, at 5.55:1.

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

Values

HEX#338CB4
RGBrgb(51, 140, 180)
HSLhsl(199, 56%, 45%)
OKLCHoklch(60.5% 0.102 231.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 #338CB4 3.78:1 AA large text Lc -70.6 Content text, not long reading
Black text on #338CB4 5.55:1 AA Lc 39.0 Non-text elements, placeholder text
#338CB4 text on white 3.78:1 AA large text Lc 65.1 Content text, not long reading
#338CB4 text on black 5.55:1 AA Lc -36.6 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

    #C8DDE9

    oklch(88.6% 0.028 232.7)

  4. Step 300

    300

    #A1C7DC

    oklch(80.9% 0.05 232.4)

  5. Step 400

    400

    #6BAACA

    oklch(70.8% 0.08 231.6)

  6. Step 500

    500 (this color)

    #338CB4

    oklch(60.5% 0.102 231.6)

  7. Step 600

    600

    #077EA9

    oklch(55.7% 0.111 231.6)

  8. Step 700

    700

    #006A8F

    oklch(49.2% 0.1 231.3)

  9. Step 800

    800

    #025675

    oklch(42.6% 0.086 231.7)

  10. Step 900

    900

    #12475F

    oklch(37.6% 0.067 232.6)

  11. Step 950

    950

    #0D2A37

    oklch(27% 0.042 230.5)

Export this scale for Tailwind in the Tailwind colors tool

#338CB4 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)#788AB60.069
Deuteranopia (no green cones)#667EB30.057
Tritanopia (no blue cones)#0097990.063
Achromatopsia (no color)#8383830.103

Harmonies

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

Complementary

The opposite hue (180°).

  • #338CB4

    #338CB4

    oklch(60.5% 0.102 231.6)

  • #B26F45

    #B26F45

    oklch(60.5% 0.103 51.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338CB4

    #338CB4

    oklch(60.5% 0.102 231.6)

  • #03939B

    #03939B

    oklch(60.4% 0.102 201.6)

  • #5F81BF

    #5F81BF

    oklch(60.4% 0.103 261.8)

Open the analogous palette in the generator

Split complementary

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

  • #338CB4

    #338CB4

    oklch(60.5% 0.102 231.6)

  • #B76766

    #B76766

    oklch(60.4% 0.103 21.3)

  • #A07B30

    #A07B30

    oklch(60.5% 0.102 82.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338CB4

    #338CB4

    oklch(60.5% 0.102 231.6)

  • #B06789

    #B06789

    oklch(60.5% 0.102 351.2)

  • #848738

    #848738

    oklch(60.4% 0.102 111.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338CB4

    #338CB4

    oklch(60.5% 0.102 231.6)

  • #9E6CA6

    #9E6CA6

    oklch(60.4% 0.103 321.8)

  • #B26F45

    #B26F45

    oklch(60.5% 0.103 51.8)

  • #5D9156

    #5D9156

    oklch(60.5% 0.103 141.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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