#2A1A40

Closest named color: Oxford Blue (#1B263B). oklch(25.9% 0.07 301.1), rgb(42, 26, 64).

Aa

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

About this color

#2A1A40 is a dark, moderately saturated purple. In OKLCH its lightness is 26%, its chroma 0.070 and its hue 301°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.047 away. White text reads best on it, at 15.90:1.

Hue familyPurples
Lightnessdark (26%)
Chromamoderately saturated (0.070)
Temperaturein between
Nearest nameOxford Blue (#1B263B)
Black text1.32:1
White text15.90:1

Values

HEX#2A1A40
RGBrgb(42, 26, 64)
HSLhsl(265, 42%, 18%)
OKLCHoklch(25.9% 0.07 301.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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #2A1A40 15.90:1 AAA Lc -105.3 Preferred for body text
Black text on #2A1A40 1.32:1 Fails Lc 0.0 Not readable
#2A1A40 text on white 15.90:1 AAA Lc 102.7 Preferred for body text
#2A1A40 text on black 1.32: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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #ECE6F8

    oklch(93.5% 0.025 301.1)

  3. Step 200

    200

    #DED3F4

    oklch(88.6% 0.046 300.7)

  4. Step 300

    300

    #C9B5EF

    oklch(81% 0.083 300.3)

  5. Step 400

    400

    #AF8CE6

    oklch(70.8% 0.133 301)

  6. Step 500

    500

    #9C6CDF

    oklch(63.1% 0.171 300.9)

  7. Step 600

    600

    #8850CC

    oklch(55.6% 0.186 301.4)

  8. Step 700

    700

    #7340B1

    oklch(49.1% 0.173 301)

  9. Step 800

    800

    #5E368F

    oklch(42.8% 0.142 301.3)

  10. Step 900

    900

    #4C3072

    oklch(37.7% 0.11 300.8)

  11. Step 950

    950 (this color)

    #2A1A40

    oklch(25.9% 0.07 301.1)

Export this scale for Tailwind in the Tailwind colors tool

#2A1A40 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)#0D22410.050
Deuteranopia (no green cones)#11223F0.047
Tritanopia (no blue cones)#26212A0.053
Achromatopsia (no color)#2222220.071

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A1A40

    #2A1A40

    oklch(25.9% 0.07 301.1)

  • #202800

    #202800

    oklch(26% 0.062 120.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A1A40

    #2A1A40

    oklch(25.9% 0.07 301.1)

  • #182045

    #182045

    oklch(25.9% 0.07 271.6)

  • #361533

    #361533

    oklch(25.9% 0.07 330.9)

Open the analogous palette in the generator

Split complementary

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

  • #2A1A40

    #2A1A40

    oklch(25.9% 0.07 301.1)

  • #2D2200

    #2D2200

    oklch(25.8% 0.053 90.8)

  • #002D11

    #002D11

    oklch(26% 0.07 151.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A1A40

    #2A1A40

    oklch(25.9% 0.07 301.1)

  • #381C00

    #381C00

    oklch(26% 0.06 61.8)

  • #002B25

    #002B25

    oklch(25.9% 0.047 180.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A1A40

    #2A1A40

    oklch(25.9% 0.07 301.1)

  • #40140D

    #40140D

    oklch(26.1% 0.07 31.3)

  • #202800

    #202800

    oklch(26% 0.062 120.5)

  • #002930

    #002930

    oklch(25.8% 0.045 211.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2A1A40 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.