#AF1828

Closest named color: Firebrick (#B22222). oklch(48.5% 0.183 23.2), rgb(175, 24, 40).

Aa

White text reads best on this color (7.03:1).

About this color

#AF1828 is a medium-dark, vivid red. In OKLCH its lightness is 49%, its chroma 0.183 and its hue 23°. Its hue sits on the warm side of the wheel. The nearest named color is Firebrick (#B22222), ΔE 0.016 away. White text reads best on it, at 7.03:1.

Hue familyReds
Lightnessmedium-dark (49%)
Chromavivid (0.183)
Temperaturewarm
Nearest nameFirebrick (#B22222)
Black text2.98:1
White text7.03:1

Values

HEX#AF1828
RGBrgb(175, 24, 40)
HSLhsl(354, 76%, 39%)
OKLCHoklch(48.5% 0.183 23.2)

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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #AF1828 7.03:1 AAA Lc -87.6 Fine for body text
Black text on #AF1828 2.98:1 Fails Lc 21.5 Dividers and decoration only
#AF1828 text on white 7.03:1 AAA Lc 82.5 Fine for body text
#AF1828 text on black 2.98:1 Fails Lc -19.4 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.

  1. Step 50

    50

    #FDF3F2

    oklch(97.2% 0.011 24.3)

  2. Step 100

    100

    #FBE4E2

    oklch(93.7% 0.025 23.6)

  3. Step 200

    200

    #F8CDCA

    oklch(88.4% 0.049 22.8)

  4. Step 300

    300

    #F5AAA6

    oklch(80.9% 0.089 22.6)

  5. Step 400

    400

    #EC7A76

    oklch(70.8% 0.141 23.4)

  6. Step 500

    500

    #E25153

    oklch(63.2% 0.181 23.1)

  7. Step 600

    600

    #CD2C37

    oklch(55.6% 0.196 23.3)

  8. Step 700

    700 (this color)

    #AF1828

    oklch(48.5% 0.183 23.2)

  9. Step 800

    800

    #901B24

    oklch(42.8% 0.152 23)

  10. Step 900

    900

    #731F22

    oklch(37.6% 0.117 22.9)

  11. Step 950

    950

    #441414

    oklch(27% 0.074 23.5)

Export this scale for Tailwind in the Tailwind colors tool

#AF1828 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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#4B44270.201
Deuteranopia (no green cones)#7064220.182
Tritanopia (no blue cones)#C100200.036
Achromatopsia (no color)#5959590.184

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #AF1828

    #AF1828

    oklch(48.5% 0.183 23.2)

  • #006C74

    #006C74

    oklch(48.4% 0.083 203.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF1828

    #AF1828

    oklch(48.5% 0.183 23.2)

  • #A51B68

    #A51B68

    oklch(48.5% 0.183 352.9)

  • #934700

    #934700

    oklch(48.5% 0.123 53)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #AF1828

    #AF1828

    oklch(48.5% 0.183 23.2)

  • #00705A

    #00705A

    oklch(48.6% 0.093 172.9)

  • #00688F

    #00688F

    oklch(48.7% 0.101 233.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF1828

    #AF1828

    oklch(48.5% 0.183 23.2)

  • #00740B

    #00740B

    oklch(48.5% 0.161 143.2)

  • #2355C4

    #2355C4

    oklch(48.6% 0.182 263.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF1828

    #AF1828

    oklch(48.5% 0.183 23.2)

  • #606500

    #606500

    oklch(48.6% 0.108 113.1)

  • #006C74

    #006C74

    oklch(48.4% 0.083 203.8)

  • #6740BA

    #6740BA

    oklch(48.5% 0.182 293.1)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #AF1828, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #AF1828 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.