#310218

Closest named color: Dark Maroon (#3C0008). oklch(20.7% 0.079 357.2), rgb(49, 2, 24).

Aa

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

About this color

#310218 is a very dark, moderately saturated red. In OKLCH its lightness is 21%, its chroma 0.079 and its hue 357°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Maroon (#3C0008), ΔE 0.040 away. White text reads best on it, at 18.22:1.

Hue familyReds
Lightnessvery dark (21%)
Chromamoderately saturated (0.079)
Temperaturewarm
Nearest nameDark Maroon (#3C0008)
Black text1.15:1
White text18.22:1

Values

HEX#310218
RGBrgb(49, 2, 24)
HSLhsl(332, 92%, 10%)
OKLCHoklch(20.7% 0.079 357.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 #310218 18.22:1 AAA Lc -106.5 Preferred for body text
Black text on #310218 1.15:1 Fails Lc 0.0 Not readable
#310218 text on white 18.22:1 AAA Lc 104.2 Preferred for body text
#310218 text on black 1.15: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.

  1. Step 50

    50

    #FDF2F5

    oklch(97.1% 0.012 358.8)

  2. Step 100

    100

    #FAE3EA

    oklch(93.6% 0.027 357.2)

  3. Step 200

    200

    #F7CBD9

    oklch(88.4% 0.053 357.2)

  4. Step 300

    300

    #F3A7C1

    oklch(80.9% 0.095 357.3)

  5. Step 400

    400

    #E875A1

    oklch(70.7% 0.149 357.4)

  6. Step 500

    500

    #DE4A8B

    oklch(63.2% 0.192 357.1)

  7. Step 600

    600

    #C92174

    oklch(55.6% 0.208 357.4)

  8. Step 700

    700

    #AD0D62

    oklch(49.1% 0.194 357)

  9. Step 800

    800

    #8D1350

    oklch(42.8% 0.161 357.2)

  10. Step 900

    900

    #711B42

    oklch(37.7% 0.124 357.4)

  11. Step 950

    950 (this color)

    #310218

    oklch(20.7% 0.079 357.2)

Export this scale for Tailwind in the Tailwind colors tool

#310218 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)#0B0F190.091
Deuteranopia (no green cones)#1919170.081
Tritanopia (no blue cones)#36000B0.027
Achromatopsia (no color)#1515150.080

Harmonies

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

Complementary

The opposite hue (180°).

  • #310218

    #310218

    oklch(20.7% 0.079 357.2)

  • #001D17

    #001D17

    oklch(20.6% 0.038 176.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #310218

    #310218

    oklch(20.7% 0.079 357.2)

  • #29062A

    #29062A

    oklch(20.8% 0.079 326.8)

  • #340203

    #340203

    oklch(20.8% 0.08 26.5)

Open the analogous palette in the generator

Split complementary

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

  • #310218

    #310218

    oklch(20.7% 0.079 357.2)

  • #001F05

    #001F05

    oklch(20.8% 0.062 146.7)

  • #001C20

    #001C20

    oklch(20.7% 0.036 207.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #310218

    #310218

    oklch(20.7% 0.079 357.2)

  • #161A00

    #161A00

    oklch(20.6% 0.048 117.2)

  • #001A2A

    #001A2A

    oklch(20.7% 0.046 238.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #310218

    #310218

    oklch(20.7% 0.079 357.2)

  • #201600

    #201600

    oklch(20.7% 0.042 86.8)

  • #001D17

    #001D17

    oklch(20.6% 0.038 176.8)

  • #08133B

    #08133B

    oklch(20.7% 0.079 267.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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