#340A3D
Closest named color: Dark Purple (#35063E). oklch(24.7% 0.098 319.9), rgb(52, 10, 61).
Aa
White text reads best on this color (16.70:1).
About this color
#340A3D is a very dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.098 and its hue 320°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.007 away. White text reads best on it, at 16.70:1.
| Hue family | Purples |
| Lightness | very dark (25%) |
| Chroma | moderately saturated (0.098) |
| Temperature | in between |
| Nearest name | Dark Purple (#35063E) |
| Black text | 1.25:1 |
| White text | 16.70:1 |
Values
| HEX | #340A3D |
| RGB | rgb(52, 10, 61) |
| HSL | hsl(289, 72%, 14%) |
| OKLCH | oklch(24.7% 0.098 319.9) |
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 #340A3D | 16.70:1 | AAA | Lc -105.6 | Preferred for body text |
| Black text on #340A3D | 1.25:1 | Fails | Lc 0.0 | Not readable |
| #340A3D text on white | 16.70:1 | AAA | Lc 103.1 | Preferred for body text |
| #340A3D text on black | 1.25: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
#FAF2FC
oklch(97% 0.016 319.4)
-
Step 100
100
#F4E3F8
oklch(93.6% 0.033 319.8)
-
Step 200
200
#EDCCF4
oklch(88.5% 0.065 320.3)
-
Step 300
300
#E2A8EF
oklch(80.9% 0.116 320.1)
-
Step 400
400
#D275E7
oklch(70.8% 0.185 320)
-
Step 500
500
#C447E0
oklch(63.1% 0.237 319.7)
-
Step 600
600
#B014CD
oklch(55.6% 0.258 320)
-
Step 700
700
#9600B0
oklch(49% 0.235 320)
-
Step 800
800
#7B0A90
oklch(42.8% 0.199 320)
-
Step 900
900
#631873
oklch(37.7% 0.155 319.8)
-
Step 950
950 (this color)
#340A3D
oklch(24.7% 0.098 319.9)
#340A3D 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) | #001B3E | 0.097 |
| Deuteranopia (no green cones) | #0F1F3C | 0.084 |
| Tritanopia (no blue cones) | #341423 | 0.059 |
| Achromatopsia (no color) | #1E1E1E | 0.099 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #340A3D
#340A3D
oklch(24.7% 0.098 319.9)
- #062900
#062900
oklch(24.6% 0.079 140)
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 #340A3D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Purple #35063E ΔE 0.007
- Deep Purple #36013F ΔE 0.016
- Eggplant #380835 ΔE 0.019
- Aubergine #3D0734 ΔE 0.028
- Eggplant Purple #430541 ΔE 0.036
- Very Dark Purple #2A0134 ΔE 0.037
- Midnight Purple #280137 ΔE 0.039
- Dark Plum #3F012C ΔE 0.043
Use #340A3D 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.