#2A1540
Closest named color: Dark Purple (#35063E). oklch(25% 0.08 303.7), rgb(42, 21, 64).
Aa
White text reads best on this color (16.40:1).
About this color
#2A1540 is a very dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.080 and its hue 304°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.037 away. White text reads best on it, at 16.40:1.
| Hue family | Purples |
| Lightness | very dark (25%) |
| Chroma | moderately saturated (0.080) |
| Temperature | in between |
| Nearest name | Dark Purple (#35063E) |
| Black text | 1.27:1 |
| White text | 16.40:1 |
Values
| HEX | #2A1540 |
| RGB | rgb(42, 21, 64) |
| HSL | hsl(269, 51%, 17%) |
| OKLCH | oklch(25% 0.08 303.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #2A1540 | 16.40:1 | AAA | Lc -105.7 | Preferred for body text |
| Black text on #2A1540 | 1.27:1 | Fails | Lc 0.0 | Not readable |
| #2A1540 text on white | 16.40:1 | AAA | Lc 103.1 | Preferred for body text |
| #2A1540 text on black | 1.27: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.
-
Step 50
50
#F7F4FD
oklch(97.2% 0.012 301.3)
-
Step 100
100
#EDE6F9
oklch(93.6% 0.026 302.6)
-
Step 200
200
#E0D1F6
oklch(88.4% 0.053 303.7)
-
Step 300
300
#CDB2F3
oklch(80.9% 0.094 303.4)
-
Step 400
400
#B587ED
oklch(70.8% 0.151 303.6)
-
Step 500
500
#A364E7
oklch(63.1% 0.194 303.5)
-
Step 600
600
#8F46D5
oklch(55.7% 0.21 303.6)
-
Step 700
700
#7A36B8
oklch(49.1% 0.195 303.9)
-
Step 800
800
#632E95
oklch(42.7% 0.162 303.8)
-
Step 900
900
#502B77
oklch(37.7% 0.126 303.3)
-
Step 950
950 (this color)
#2A1540
oklch(25% 0.08 303.7)
#2A1540 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #031F41 | 0.064 |
| Deuteranopia (no green cones) | #0B1F3F | 0.057 |
| Tritanopia (no blue cones) | #261E28 | 0.059 |
| Achromatopsia (no color) | #1F1F1F | 0.080 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #2A1540
#2A1540
oklch(25% 0.08 303.7)
- #1C2600
#1C2600
oklch(25% 0.061 123.2)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #2A1540, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Purple #35063E ΔE 0.037
- Eggplant #380835 ΔE 0.044
- Deep Purple #36013F ΔE 0.045
- Midnight Purple #280137 ΔE 0.049
- Very Dark Purple #2A0134 ΔE 0.050
- Dark Indigo #1F0954 ΔE 0.053
- Aubergine #3D0734 ΔE 0.053
- Oxford Blue #1B263B ΔE 0.058
Use #2A1540 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.