#242040

Closest named color: Oxford Blue (#1B263B). oklch(26.5% 0.058 287.5), rgb(36, 32, 64).

Aa

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

About this color

#242040 is a dark, muted purple. In OKLCH its lightness is 27%, its chroma 0.058 and its hue 287°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.027 away. White text reads best on it, at 15.49:1.

Hue familyPurples
Lightnessdark (27%)
Chromamuted (0.058)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.35:1
White text15.49:1

Values

HEX#242040
RGBrgb(36, 32, 64)
HSLhsl(248, 33%, 19%)
OKLCHoklch(26.5% 0.058 287.5)

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 #242040 15.49:1 AAA Lc -105.0 Preferred for body text
Black text on #242040 1.35:1 Fails Lc 0.0 Not readable
#242040 text on white 15.49:1 AAA Lc 102.4 Preferred for body text
#242040 text on black 1.35: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 950.

  1. Step 50

    50

    #F5F5FC

    oklch(97.2% 0.009 286.2)

  2. Step 100

    100

    #E9E8F7

    oklch(93.6% 0.02 289.1)

  3. Step 200

    200

    #D7D6F2

    oklch(88.6% 0.038 287.2)

  4. Step 300

    300

    #BDBAEC

    oklch(80.8% 0.07 287.5)

  5. Step 400

    400

    #9C95E2

    oklch(70.6% 0.111 287.3)

  6. Step 500

    500

    #8679DA

    oklch(63.1% 0.143 287.7)

  7. Step 600

    600

    #7060C7

    oklch(55.5% 0.154 287.4)

  8. Step 700

    700

    #5E4FAC

    oklch(49.1% 0.143 287.3)

  9. Step 800

    800

    #4D418B

    oklch(42.6% 0.118 287.7)

  10. Step 900

    900

    #40386F

    oklch(37.7% 0.092 287.9)

  11. Step 950

    950 (this color)

    #242040

    oklch(26.5% 0.058 287.5)

Export this scale for Tailwind in the Tailwind colors tool

#242040 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)#1525410.027
Deuteranopia (no green cones)#14233F0.026
Tritanopia (no blue cones)#1C262C0.050
Achromatopsia (no color)#2424240.059

Harmonies

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

Complementary

The opposite hue (180°).

  • #242040

    #242040

    oklch(26.5% 0.058 287.5)

  • #282700

    #282700

    oklch(26.5% 0.057 108.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #242040

    #242040

    oklch(26.5% 0.058 287.5)

  • #122541

    #122541

    oklch(26.4% 0.058 258)

  • #311B38

    #311B38

    oklch(26.5% 0.06 317.7)

Open the analogous palette in the generator

Split complementary

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

  • #242040

    #242040

    oklch(26.5% 0.058 287.5)

  • #342100

    #342100

    oklch(26.5% 0.055 77.2)

  • #162C0E

    #162C0E

    oklch(26.6% 0.059 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #242040

    #242040

    oklch(26.5% 0.058 287.5)

  • #3C1B09

    #3C1B09

    oklch(26.6% 0.059 47)

  • #002D20

    #002D20

    oklch(26.4% 0.053 168.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #242040

    #242040

    oklch(26.5% 0.058 287.5)

  • #3D181B

    #3D181B

    oklch(26.6% 0.058 16.9)

  • #282700

    #282700

    oklch(26.5% 0.057 108.3)

  • #002C2D

    #002C2D

    oklch(26.6% 0.045 197.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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