#2F0040
Closest named color: Deep Purple (#36013F). oklch(22.9% 0.113 314.4), rgb(47, 0, 64).
Aa
White text reads best on this color (17.57:1).
About this color
#2F0040 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.113 and its hue 314°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Purple (#36013F), ΔE 0.019 away. White text reads best on it, at 17.57:1.
| Hue family | Purples |
| Lightness | very dark (23%) |
| Chroma | moderately saturated (0.113) |
| Temperature | in between |
| Nearest name | Deep Purple (#36013F) |
| Black text | 1.19:1 |
| White text | 17.57:1 |
Values
| HEX | #2F0040 |
| RGB | rgb(47, 0, 64) |
| HSL | hsl(284, 100%, 13%) |
| OKLCH | oklch(22.9% 0.113 314.4) |
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 #2F0040 | 17.57:1 | AAA | Lc -105.9 | Preferred for body text |
| Black text on #2F0040 | 1.19:1 | Fails | Lc 0.0 | Not readable |
| #2F0040 text on white | 17.57:1 | AAA | Lc 103.5 | Preferred for body text |
| #2F0040 text on black | 1.19: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
#FAF2FE
oklch(97.1% 0.018 314.7)
-
Step 100
100
#F4E3FC
oklch(93.7% 0.038 315.1)
-
Step 200
200
#ECCBFC
oklch(88.5% 0.075 314.7)
-
Step 300
300
#E0A6FD
oklch(80.9% 0.134 314)
-
Step 400
400
#D06EFB
oklch(70.6% 0.215 314.4)
-
Step 500
500
#C336F8
oklch(63.1% 0.274 314.4)
-
Step 600
600
#AB00DE
oklch(55.6% 0.275 314.5)
-
Step 700
700
#9000BC
oklch(49% 0.242 314.4)
-
Step 800
800
#77009C
oklch(42.7% 0.211 314.4)
-
Step 900
900
#620981
oklch(37.7% 0.179 314.1)
-
Step 950
950 (this color)
#2F0040
oklch(22.9% 0.113 314.4)
#2F0040 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) | #001742 | 0.096 |
| Deuteranopia (no green cones) | #001A3F | 0.098 |
| Tritanopia (no blue cones) | #2D1022 | 0.071 |
| Achromatopsia (no color) | #191919 | 0.114 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #2F0040
#2F0040
oklch(22.9% 0.113 314.4)
- #0E2300
#0E2300
oklch(22.9% 0.066 134.4)
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 #2F0040, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Purple #36013F ΔE 0.019
- Dark Purple #35063E ΔE 0.021
- Midnight Purple #280137 ΔE 0.023
- Very Dark Purple #2A0134 ΔE 0.025
- Eggplant #380835 ΔE 0.039
- Aubergine #3D0734 ΔE 0.049
- Eggplant Purple #430541 ΔE 0.053
- Dark Indigo #1F0954 ΔE 0.059
Use #2F0040 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.