#AF1F31
Closest named color: Firebrick (#B22222). oklch(49.1% 0.178 21.1), rgb(175, 31, 49).
Aa
White text reads best on this color (6.85:1).
About this color
#AF1F31 is a medium-dark, vivid red. In OKLCH its lightness is 49%, its chroma 0.178 and its hue 21°. Its hue sits on the warm side of the wheel. The nearest named color is Firebrick (#B22222), ΔE 0.019 away. White text reads best on it, at 6.85:1.
| Hue family | Reds |
| Lightness | medium-dark (49%) |
| Chroma | vivid (0.178) |
| Temperature | warm |
| Nearest name | Firebrick (#B22222) |
| Black text | 3.06:1 |
| White text | 6.85:1 |
Values
| HEX | #AF1F31 |
| RGB | rgb(175, 31, 49) |
| HSL | hsl(353, 70%, 40%) |
| OKLCH | oklch(49.1% 0.178 21.1) |
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 #AF1F31 | 6.85:1 | AA | Lc -87.1 | Fine for body text |
| Black text on #AF1F31 | 3.06:1 | AA large text | Lc 22.0 | Dividers and decoration only |
| #AF1F31 text on white | 6.85:1 | AA | Lc 82.0 | Fine for body text |
| #AF1F31 text on black | 3.06:1 | AA large text | Lc -19.9 | Dividers and decoration only |
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 700.
-
Step 50
50
#FDF3F2
oklch(97.2% 0.011 24.3)
-
Step 100
100
#FAE4E3
oklch(93.6% 0.024 20.7)
-
Step 200
200
#F7CDCC
oklch(88.4% 0.048 19.7)
-
Step 300
300
#F3ABA9
oklch(80.9% 0.085 20.9)
-
Step 400
400
#EA7B7B
oklch(70.8% 0.137 21.1)
-
Step 500
500
#E05359
oklch(63.2% 0.176 21.2)
-
Step 600
600
#CB2F3F
oklch(55.6% 0.191 21)
-
Step 700
700 (this color)
#AF1F31
oklch(49.1% 0.178 21.1)
-
Step 800
800
#8E1E29
oklch(42.7% 0.147 21.2)
-
Step 900
900
#722026
oklch(37.6% 0.115 20.6)
-
Step 950
950
#431416
oklch(26.9% 0.073 21)
#AF1F31 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) | #4D4730 | 0.195 |
| Deuteranopia (no green cones) | #70652C | 0.178 |
| Tritanopia (no blue cones) | #C10028 | 0.036 |
| Achromatopsia (no color) | #5A5A5A | 0.179 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF1F31
#AF1F31
oklch(49.1% 0.178 21.1)
- #006E74
#006E74
oklch(49% 0.083 201.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 #AF1F31, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Firebrick #B22222 ΔE 0.019
- Rouge #AB1239 ΔE 0.022
- Brown #A52A2A ΔE 0.025
- Rufous #AE2012 ΔE 0.029
- Lipstick Red #C0022F ΔE 0.034
- Scarlet #BE0119 ΔE 0.035
- Rose Red #BE013C ΔE 0.036
- Rust Red #AA2704 ΔE 0.040
Use #AF1F31 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.