#334C8E

Closest named color: Dusk Blue (#26538D). oklch(43.2% 0.113 266.2), rgb(51, 76, 142).

Aa

White text reads best on this color (8.18:1).

About this color

#334C8E is a dark, moderately saturated blue. In OKLCH its lightness is 43%, its chroma 0.113 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk Blue (#26538D), ΔE 0.022 away. White text reads best on it, at 8.18:1.

Hue familyBlues
Lightnessdark (43%)
Chromamoderately saturated (0.113)
Temperaturecool
Nearest nameDusk Blue (#26538D)
Black text2.56:1
White text8.18:1

Values

HEX#334C8E
RGBrgb(51, 76, 142)
HSLhsl(224, 47%, 38%)
OKLCHoklch(43.2% 0.113 266.2)

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 #334C8E 8.18:1 AAA Lc -92.7 Preferred for body text
Black text on #334C8E 2.56:1 Fails Lc 15.9 Dividers and decoration only
#334C8E text on white 8.18:1 AAA Lc 88.1 Fine for body text
#334C8E text on black 2.56:1 Fails Lc -14.1 Not readable

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

  1. Step 50

    50

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CED9F2

    oklch(88.5% 0.036 266.7)

  4. Step 300

    300

    #ADC0EC

    oklch(80.8% 0.066 266.6)

  5. Step 400

    400

    #829FE3

    oklch(70.8% 0.105 266.1)

  6. Step 500

    500

    #6385DB

    oklch(63% 0.135 266.3)

  7. Step 600

    600

    #4B6DC9

    oklch(55.6% 0.148 266.4)

  8. Step 700

    700

    #3C5BAD

    oklch(49.1% 0.136 266)

  9. Step 800

    800 (this color)

    #334C8E

    oklch(43.2% 0.113 266.2)

  10. Step 900

    900

    #2B3F70

    oklch(37.7% 0.088 265.7)

  11. Step 950

    950

    #1A2542

    oklch(27% 0.056 266.9)

Export this scale for Tailwind in the Tailwind colors tool

#334C8E 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)#2C53900.020
Deuteranopia (no green cones)#1E4B8D0.022
Tritanopia (no blue cones)#005B660.096
Achromatopsia (no color)#4F4F4F0.113

Harmonies

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

Complementary

The opposite hue (180°).

  • #334C8E

    #334C8E

    oklch(43.2% 0.113 266.2)

  • #664C00

    #664C00

    oklch(43.2% 0.089 85.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #334C8E

    #334C8E

    oklch(43.2% 0.113 266.2)

  • #00577C

    #00577C

    oklch(43.2% 0.093 235.9)

  • #574087

    #574087

    oklch(43.2% 0.115 296.2)

Open the analogous palette in the generator

Split complementary

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

  • #334C8E

    #334C8E

    oklch(43.2% 0.113 266.2)

  • #7B3E00

    #7B3E00

    oklch(43.3% 0.106 56.1)

  • #4E5600

    #4E5600

    oklch(43.1% 0.098 115.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #334C8E

    #334C8E

    oklch(43.2% 0.113 266.2)

  • #83322E

    #83322E

    oklch(43.1% 0.113 25.7)

  • #1A6026

    #1A6026

    oklch(43.2% 0.114 146.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #334C8E

    #334C8E

    oklch(43.2% 0.113 266.2)

  • #7E3152

    #7E3152

    oklch(43.2% 0.113 356.1)

  • #664C00

    #664C00

    oklch(43.2% 0.089 85.9)

  • #005E4F

    #005E4F

    oklch(43.1% 0.08 176.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #334C8E 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.