#281238

Closest named color: Dark Purple (#35063E). oklch(23.5% 0.073 308.5), rgb(40, 18, 56).

Aa

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

About this color

#281238 is a very dark, moderately saturated purple. In OKLCH its lightness is 24%, its chroma 0.073 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.038 away. White text reads best on it, at 17.01:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamoderately saturated (0.073)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.23:1
White text17.01:1

Values

HEX#281238
RGBrgb(40, 18, 56)
HSLhsl(275, 51%, 15%)
OKLCHoklch(23.5% 0.073 308.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 #281238 17.01:1 AAA Lc -106.1 Preferred for body text
Black text on #281238 1.23:1 Fails Lc 0.0 Not readable
#281238 text on white 17.01:1 AAA Lc 103.7 Preferred for body text
#281238 text on black 1.23: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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE6F7

    oklch(93.7% 0.025 309.4)

  3. Step 200

    200

    #E2D1F2

    oklch(88.5% 0.048 308.5)

  4. Step 300

    300

    #D1B2EC

    oklch(81% 0.087 308.8)

  5. Step 400

    400

    #B987E2

    oklch(70.7% 0.139 308.5)

  6. Step 500

    500

    #A866DA

    oklch(63.2% 0.177 308.4)

  7. Step 600

    600

    #9349C7

    oklch(55.5% 0.193 308.4)

  8. Step 700

    700

    #7E39AC

    oklch(49.1% 0.179 308.8)

  9. Step 800

    800

    #66308B

    oklch(42.6% 0.149 308.7)

  10. Step 900

    900

    #532C6F

    oklch(37.6% 0.115 308.7)

  11. Step 950

    950 (this color)

    #281238

    oklch(23.5% 0.073 308.5)

Export this scale for Tailwind in the Tailwind colors tool

#281238 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)#051B390.062
Deuteranopia (no green cones)#0D1C370.055
Tritanopia (no blue cones)#2619220.052
Achromatopsia (no color)#1C1C1C0.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #281238

    #281238

    oklch(23.5% 0.073 308.5)

  • #152300

    #152300

    oklch(23.4% 0.062 128.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #281238

    #281238

    oklch(23.5% 0.073 308.5)

  • #181840

    #181840

    oklch(23.6% 0.074 279.1)

  • #330D2A

    #330D2A

    oklch(23.6% 0.074 338.2)

Open the analogous palette in the generator

Split complementary

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

  • #281238

    #281238

    oklch(23.5% 0.073 308.5)

  • #241E00

    #241E00

    oklch(23.5% 0.049 98.6)

  • #002614

    #002614

    oklch(23.7% 0.055 158)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #281238

    #281238

    oklch(23.5% 0.073 308.5)

  • #2E1900

    #2E1900

    oklch(23.7% 0.052 68.5)

  • #002422

    #002422

    oklch(23.5% 0.041 189.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #281238

    #281238

    oklch(23.5% 0.073 308.5)

  • #390D01

    #390D01

    oklch(23.4% 0.074 38.3)

  • #152300

    #152300

    oklch(23.4% 0.062 128.4)

  • #00232C

    #00232C

    oklch(23.7% 0.043 218.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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