#334882

Closest named color: Cobalt (#1E488F). oklch(41.5% 0.1 267), rgb(51, 72, 130).

Aa

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

About this color

#334882 is a dark, moderately saturated blue. In OKLCH its lightness is 41%, its chroma 0.100 and its hue 267°. Its hue sits on the cool side of the wheel. The nearest named color is Cobalt (#1E488F), ΔE 0.030 away. White text reads best on it, at 8.78:1.

Hue familyBlues
Lightnessdark (41%)
Chromamoderately saturated (0.100)
Temperaturecool
Nearest nameCobalt (#1E488F)
Black text2.39:1
White text8.78:1

Values

HEX#334882
RGBrgb(51, 72, 130)
HSLhsl(224, 44%, 35%)
OKLCHoklch(41.5% 0.1 267)

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 #334882 8.78:1 AAA Lc -94.4 Preferred for body text
Black text on #334882 2.39:1 Fails Lc 14.1 Not readable
#334882 text on white 8.78:1 AAA Lc 89.9 Fine for body text
#334882 text on black 2.39:1 Fails Lc -12.4 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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5EAF6

    oklch(93.7% 0.017 267.8)

  3. Step 200

    200

    #CFD9EF

    oklch(88.4% 0.032 266.1)

  4. Step 300

    300

    #B0C0E8

    oklch(80.9% 0.059 267.9)

  5. Step 400

    400

    #869FDC

    oklch(70.7% 0.094 266.9)

  6. Step 500

    500

    #6986D2

    oklch(63.1% 0.12 267.1)

  7. Step 600

    600

    #516EBF

    oklch(55.5% 0.13 267.3)

  8. Step 700

    700

    #425CA5

    oklch(49.1% 0.121 267.1)

  9. Step 800

    800 (this color)

    #334882

    oklch(41.5% 0.1 267)

  10. Step 900

    900

    #2F3F6B

    oklch(37.6% 0.078 267.5)

  11. Step 950

    950

    #1B253F

    oklch(26.9% 0.051 267)

Export this scale for Tailwind in the Tailwind colors tool

#334882 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)#2E4E840.017
Deuteranopia (no green cones)#2347810.019
Tritanopia (no blue cones)#00555E0.089
Achromatopsia (no color)#4B4B4B0.100

Harmonies

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

Complementary

The opposite hue (180°).

  • #334882

    #334882

    oklch(41.5% 0.1 267)

  • #5F4800

    #5F4800

    oklch(41.5% 0.085 87.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #334882

    #334882

    oklch(41.5% 0.1 267)

  • #005276

    #005276

    oklch(41.5% 0.09 236.5)

  • #523E7B

    #523E7B

    oklch(41.5% 0.1 296.9)

Open the analogous palette in the generator

Split complementary

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

  • #334882

    #334882

    oklch(41.5% 0.1 267)

  • #733B00

    #733B00

    oklch(41.5% 0.1 57.5)

  • #485200

    #485200

    oklch(41.5% 0.096 117.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #334882

    #334882

    oklch(41.5% 0.1 267)

  • #79322C

    #79322C

    oklch(41.4% 0.101 27.2)

  • #1D5A29

    #1D5A29

    oklch(41.5% 0.101 147.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #334882

    #334882

    oklch(41.5% 0.1 267)

  • #75314C

    #75314C

    oklch(41.5% 0.1 357.5)

  • #5F4800

    #5F4800

    oklch(41.5% 0.085 87.6)

  • #00594B

    #00594B

    oklch(41.5% 0.077 177.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #334882 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.