#1F0F34
Closest named color: Midnight Purple (#280137). oklch(21.4% 0.07 300.5), rgb(31, 15, 52).
Aa
White text reads best on this color (17.85:1).
About this color
#1F0F34 is a very dark, moderately saturated purple. In OKLCH its lightness is 21%, its chroma 0.070 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.85:1.
| Hue family | Purples |
| Lightness | very dark (21%) |
| Chroma | moderately saturated (0.070) |
| Temperature | in between |
| Nearest name | Midnight Purple (#280137) |
| Black text | 1.17:1 |
| White text | 17.85:1 |
Values
| HEX | #1F0F34 |
| RGB | rgb(31, 15, 52) |
| HSL | hsl(266, 55%, 13%) |
| OKLCH | oklch(21.4% 0.07 300.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #1F0F34 | 17.85:1 | AAA | Lc -106.7 | Preferred for body text |
| Black text on #1F0F34 | 1.17:1 | Fails | Lc 0.0 | Not readable |
| #1F0F34 text on white | 17.85:1 | AAA | Lc 104.4 | Preferred for body text |
| #1F0F34 text on black | 1.17: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
#F6F4FC
oklch(97.1% 0.011 297.6)
-
Step 100
100
#ECE7F8
oklch(93.7% 0.023 299.4)
-
Step 200
200
#DED3F4
oklch(88.6% 0.046 300.7)
-
Step 300
300
#C9B5EF
oklch(81% 0.083 300.3)
-
Step 400
400
#AE8CE6
oklch(70.7% 0.132 300.5)
-
Step 500
500
#9B6CDF
oklch(63% 0.17 300.5)
-
Step 600
600
#8751CD
oklch(55.7% 0.185 300.6)
-
Step 700
700
#7241B1
oklch(49.1% 0.171 300.3)
-
Step 800
800
#5D368F
oklch(42.7% 0.142 300.7)
-
Step 900
900
#4C3072
oklch(37.7% 0.11 300.8)
-
Step 950
950 (this color)
#1F0F34
oklch(21.4% 0.07 300.5)
#1F0F34 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) | #001735 | 0.054 |
| Deuteranopia (no green cones) | #041733 | 0.050 |
| Tritanopia (no blue cones) | #1B171F | 0.054 |
| Achromatopsia (no color) | #171717 | 0.071 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #1F0F34
#1F0F34
oklch(21.4% 0.07 300.5)
- #161C00
#161C00
oklch(21.3% 0.051 120.1)
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 #1F0F34, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Purple #280137 ΔE 0.037
- Very Dark Purple #2A0134 ΔE 0.039
- Rich Black #0D1B2A ΔE 0.054
- Dark Purple #35063E ΔE 0.055
- Eggplant #380835 ΔE 0.059
- Deep Purple #36013F ΔE 0.060
- Dark Indigo #1F0954 ΔE 0.062
- Navy Blue #001146 ΔE 0.064
Use #1F0F34 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.