#403045

Closest named color: Onyx (#343A40). oklch(33.6% 0.042 318), rgb(64, 48, 69).

Aa

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

About this color

#403045 is a dark, muted purple. In OKLCH its lightness is 34%, its chroma 0.042 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.040 away. White text reads best on it, at 12.16:1.

Hue familyPurples
Lightnessdark (34%)
Chromamuted (0.042)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.72:1
White text12.16:1

Values

HEX#403045
RGBrgb(64, 48, 69)
HSLhsl(286, 18%, 23%)
OKLCHoklch(33.6% 0.042 318)

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 #403045 12.16:1 AAA Lc -101.3 Preferred for body text
Black text on #403045 1.72:1 Fails Lc 0.0 Not readable
#403045 text on white 12.16:1 AAA Lc 97.8 Preferred for body text
#403045 text on black 1.72: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

    #F7F5F7

    oklch(97.2% 0.003 325.6)

  2. Step 100

    100

    #ECE8EE

    oklch(93.6% 0.009 314.8)

  3. Step 200

    200

    #DED6E1

    oklch(88.6% 0.017 316.9)

  4. Step 300

    300

    #C9BBCE

    oklch(80.9% 0.03 317.2)

  5. Step 400

    400

    #AE97B5

    oklch(70.7% 0.05 318.3)

  6. Step 500

    500

    #9A7DA3

    oklch(63% 0.065 318.1)

  7. Step 600

    600

    #85668E

    oklch(55.6% 0.071 318.5)

  8. Step 700

    700

    #705579

    oklch(49.1% 0.065 317.5)

  9. Step 800

    800

    #5B4662

    oklch(42.7% 0.052 317.6)

  10. Step 900

    900 (this color)

    #403045

    oklch(33.6% 0.042 318)

  11. Step 950

    950

    #2C222F

    oklch(26.9% 0.028 318.3)

Export this scale for Tailwind in the Tailwind colors tool

#403045 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)#2D35460.035
Deuteranopia (no green cones)#3136440.031
Tritanopia (no blue cones)#4032370.028
Achromatopsia (no color)#3636360.042

Harmonies

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

Complementary

The opposite hue (180°).

  • #403045

    #403045

    oklch(33.6% 0.042 318)

  • #2C3C27

    #2C3C27

    oklch(33.5% 0.041 138.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403045

    #403045

    oklch(33.6% 0.042 318)

  • #36334B

    #36334B

    oklch(33.5% 0.042 289.7)

  • #472E3B

    #472E3B

    oklch(33.6% 0.042 347.1)

Open the analogous palette in the generator

Split complementary

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

  • #403045

    #403045

    oklch(33.6% 0.042 318)

  • #39391E

    #39391E

    oklch(33.7% 0.043 108.5)

  • #1F3E33

    #1F3E33

    oklch(33.6% 0.042 168.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403045

    #403045

    oklch(33.6% 0.042 318)

  • #43341D

    #43341D

    oklch(33.6% 0.042 77.2)

  • #193E3F

    #193E3F

    oklch(33.7% 0.042 197.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403045

    #403045

    oklch(33.6% 0.042 318)

  • #493024

    #493024

    oklch(33.6% 0.042 46.5)

  • #2C3C27

    #2C3C27

    oklch(33.5% 0.041 138.4)

  • #1E3B48

    #1E3B48

    oklch(33.6% 0.042 228.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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