#31334F

Closest named color: Gunmetal (#293241). oklch(33.2% 0.049 280.2), rgb(49, 51, 79).

Aa

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

About this color

#31334F is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.049 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Gunmetal (#293241), ΔE 0.029 away. White text reads best on it, at 12.23:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.049)
Temperaturecool
Nearest nameGunmetal (#293241)
Black text1.71:1
White text12.23:1

Values

HEX#31334F
RGBrgb(49, 51, 79)
HSLhsl(236, 23%, 25%)
OKLCHoklch(33.2% 0.049 280.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 #31334F 12.23:1 AAA Lc -101.4 Preferred for body text
Black text on #31334F 1.71:1 Fails Lc 0.0 Not readable
#31334F text on white 12.23:1 AAA Lc 97.9 Preferred for body text
#31334F text on black 1.71:1 Fails Lc 0.0 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

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #E8E9F1

    oklch(93.6% 0.011 280.5)

  3. Step 200

    200

    #D6D8E7

    oklch(88.5% 0.021 279.9)

  4. Step 300

    300

    #BBBED9

    oklch(80.8% 0.038 280.5)

  5. Step 400

    400

    #999DC6

    oklch(70.7% 0.06 280.4)

  6. Step 500

    500

    #8085B7

    oklch(63.2% 0.075 279.6)

  7. Step 600

    600

    #6A6EA3

    oklch(55.7% 0.082 280.1)

  8. Step 700

    700

    #585C8B

    oklch(49.2% 0.075 279.5)

  9. Step 800

    800

    #484B71

    oklch(42.7% 0.063 279.9)

  10. Step 900

    900 (this color)

    #31334F

    oklch(33.2% 0.049 280.2)

  11. Step 950

    950

    #232536

    oklch(27% 0.032 278.9)

Export this scale for Tailwind in the Tailwind colors tool

#31334F 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)#2A36500.013
Deuteranopia (no green cones)#29344E0.013
Tritanopia (no blue cones)#29383D0.043
Achromatopsia (no color)#3535350.049

Harmonies

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

Complementary

The opposite hue (180°).

  • #31334F

    #31334F

    oklch(33.2% 0.049 280.2)

  • #3C3716

    #3C3716

    oklch(33.4% 0.05 100.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31334F

    #31334F

    oklch(33.2% 0.049 280.2)

  • #22384F

    #22384F

    oklch(33.4% 0.05 250.5)

  • #3E2F49

    #3E2F49

    oklch(33.3% 0.049 310.2)

Open the analogous palette in the generator

Split complementary

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

  • #31334F

    #31334F

    oklch(33.2% 0.049 280.2)

  • #463118

    #463118

    oklch(33.1% 0.049 69.5)

  • #2D3B1F

    #2D3B1F

    oklch(33.2% 0.05 130.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31334F

    #31334F

    oklch(33.2% 0.049 280.2)

  • #4C2D22

    #4C2D22

    oklch(33.3% 0.05 40.3)

  • #1D3E2D

    #1D3E2D

    oklch(33.3% 0.05 159.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31334F

    #31334F

    oklch(33.2% 0.049 280.2)

  • #4C2B30

    #4C2B30

    oklch(33.3% 0.049 10.3)

  • #3C3716

    #3C3716

    oklch(33.4% 0.05 100.8)

  • #0F3E3C

    #0F3E3C

    oklch(33.2% 0.049 191)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31334F 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.