#334071

Closest named color: Twilight Blue (#0A437A). oklch(38.5% 0.085 270.8), rgb(51, 64, 113).

Aa

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

About this color

#334071 is a dark, moderately saturated blue. In OKLCH its lightness is 39%, its chroma 0.085 and its hue 271°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight Blue (#0A437A), ΔE 0.038 away. White text reads best on it, at 9.94:1.

Hue familyBlues
Lightnessdark (39%)
Chromamoderately saturated (0.085)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text2.11:1
White text9.94:1

Values

HEX#334071
RGBrgb(51, 64, 113)
HSLhsl(227, 38%, 32%)
OKLCHoklch(38.5% 0.085 270.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 #334071 9.94:1 AAA Lc -97.1 Preferred for body text
Black text on #334071 2.11:1 Fails Lc 11.0 Not readable
#334071 text on white 9.94:1 AAA Lc 92.9 Preferred for body text
#334071 text on black 2.11:1 Fails Lc -9.5 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 900.

  1. Step 50

    50

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5EAF7

    oklch(93.7% 0.018 269.1)

  3. Step 200

    200

    #D0D8F1

    oklch(88.4% 0.035 271.5)

  4. Step 300

    300

    #B1BFEB

    oklch(80.9% 0.064 271.1)

  5. Step 400

    400

    #899DE1

    oklch(70.7% 0.102 271.1)

  6. Step 500

    500

    #6C83D8

    oklch(63% 0.131 270.8)

  7. Step 600

    600

    #556BC5

    oklch(55.5% 0.141 270.9)

  8. Step 700

    700

    #4659AB

    oklch(49.1% 0.132 271)

  9. Step 800

    800

    #39498A

    oklch(42.6% 0.109 270.8)

  10. Step 900

    900 (this color)

    #334071

    oklch(38.5% 0.085 270.8)

  11. Step 950

    950

    #1D2441

    oklch(26.9% 0.055 272)

Export this scale for Tailwind in the Tailwind colors tool

#334071 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)#2C46730.018
Deuteranopia (no green cones)#2540700.018
Tritanopia (no blue cones)#164B530.076
Achromatopsia (no color)#4343430.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #334071

    #334071

    oklch(38.5% 0.085 270.8)

  • #544100

    #544100

    oklch(38.5% 0.079 89.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #334071

    #334071

    oklch(38.5% 0.085 270.8)

  • #08486C

    #08486C

    oklch(38.4% 0.085 240.9)

  • #4C386A

    #4C386A

    oklch(38.6% 0.085 301)

Open the analogous palette in the generator

Split complementary

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

  • #334071

    #334071

    oklch(38.5% 0.085 270.8)

  • #643707

    #643707

    oklch(38.5% 0.085 60.3)

  • #3D4A0B

    #3D4A0B

    oklch(38.5% 0.085 121.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #334071

    #334071

    oklch(38.5% 0.085 270.8)

  • #6A3027

    #6A3027

    oklch(38.6% 0.085 30.5)

  • #19502B

    #19502B

    oklch(38.5% 0.085 151)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #334071

    #334071

    oklch(38.5% 0.085 270.8)

  • #672E41

    #672E41

    oklch(38.5% 0.085 0.8)

  • #544100

    #544100

    oklch(38.5% 0.079 89.8)

  • #005046

    #005046

    oklch(38.7% 0.07 180.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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