#251040

Closest named color: Midnight Purple (#280137). oklch(23.5% 0.087 299.7), rgb(37, 16, 64).

Aa

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

About this color

#251040 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.087 and its hue 300°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.037 away. White text reads best on it, at 17.11:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamoderately saturated (0.087)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.22:1
White text17.11:1

Values

HEX#251040
RGBrgb(37, 16, 64)
HSLhsl(266, 60%, 16%)
OKLCHoklch(23.5% 0.087 299.7)

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 #251040 17.11:1 AAA Lc -106.1 Preferred for body text
Black text on #251040 1.22:1 Fails Lc 0.0 Not readable
#251040 text on white 17.11:1 AAA Lc 103.7 Preferred for body text
#251040 text on black 1.22: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

    #F7F4FE

    oklch(97.2% 0.014 299.8)

  2. Step 100

    100

    #ECE6FB

    oklch(93.6% 0.029 298.9)

  3. Step 200

    200

    #DED1FA

    oklch(88.4% 0.057 299.7)

  4. Step 300

    300

    #CAB2FA

    oklch(80.9% 0.103 299.4)

  5. Step 400

    400

    #B186F7

    oklch(70.8% 0.164 299.8)

  6. Step 500

    500

    #9F61F3

    oklch(63% 0.211 299.9)

  7. Step 600

    600

    #8B41E2

    oklch(55.6% 0.229 299.8)

  8. Step 700

    700

    #7631C4

    oklch(49.1% 0.212 299.8)

  9. Step 800

    800

    #602B9F

    oklch(42.8% 0.176 299.7)

  10. Step 900

    900

    #4E297E

    oklch(37.7% 0.137 299.8)

  11. Step 950

    950 (this color)

    #251040

    oklch(23.5% 0.087 299.7)

Export this scale for Tailwind in the Tailwind colors tool

#251040 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)#001B410.062
Deuteranopia (no green cones)#001B3F0.063
Tritanopia (no blue cones)#1F1B260.065
Achromatopsia (no color)#1C1C1C0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #251040

    #251040

    oklch(23.5% 0.087 299.7)

  • #1B2100

    #1B2100

    oklch(23.3% 0.055 119.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #251040

    #251040

    oklch(23.5% 0.087 299.7)

  • #0F1846

    #0F1846

    oklch(23.4% 0.087 269.9)

  • #330931

    #330931

    oklch(23.5% 0.087 329.9)

Open the analogous palette in the generator

Split complementary

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

  • #251040

    #251040

    oklch(23.5% 0.087 299.7)

  • #271D00

    #271D00

    oklch(23.6% 0.048 90.5)

  • #00260C

    #00260C

    oklch(23.5% 0.065 150)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #251040

    #251040

    oklch(23.5% 0.087 299.7)

  • #301600

    #301600

    oklch(23.3% 0.055 59.3)

  • #00241F

    #00241F

    oklch(23.3% 0.042 181.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #251040

    #251040

    oklch(23.5% 0.087 299.7)

  • #3E0502

    #3E0502

    oklch(23.5% 0.087 30.2)

  • #1B2100

    #1B2100

    oklch(23.3% 0.055 119.1)

  • #002328

    #002328

    oklch(23.4% 0.04 208.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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