#270D42

Closest named color: Midnight Purple (#280137). oklch(23.5% 0.095 301.9), rgb(39, 13, 66).

Aa

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

About this color

#270D42 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.095 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.033 away. White text reads best on it, at 17.17:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamoderately saturated (0.095)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.22:1
White text17.17:1

Values

HEX#270D42
RGBrgb(39, 13, 66)
HSLhsl(269, 67%, 15%)
OKLCHoklch(23.5% 0.095 301.9)

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 #270D42 17.17:1 AAA Lc -106.1 Preferred for body text
Black text on #270D42 1.22:1 Fails Lc 0.0 Not readable
#270D42 text on white 17.17:1 AAA Lc 103.7 Preferred for body text
#270D42 text on black 1.22: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

    #F7F3FE

    oklch(97% 0.015 302.6)

  2. Step 100

    100

    #EDE5FD

    oklch(93.5% 0.033 300.9)

  3. Step 200

    200

    #E0D0FC

    oklch(88.5% 0.062 301.7)

  4. Step 300

    300

    #CEAFFD

    oklch(80.9% 0.112 302.2)

  5. Step 400

    400

    #B681FC

    oklch(70.7% 0.179 301.9)

  6. Step 500

    500

    #A559FA

    oklch(63.1% 0.23 301.8)

  7. Step 600

    600

    #9135E9

    oklch(55.6% 0.249 301.7)

  8. Step 700

    700

    #7C24CA

    oklch(49.1% 0.231 301.9)

  9. Step 800

    800

    #6522A3

    oklch(42.7% 0.191 302.2)

  10. Step 900

    900

    #522482

    oklch(37.8% 0.15 302)

  11. Step 950

    950 (this color)

    #270D42

    oklch(23.5% 0.095 301.9)

Export this scale for Tailwind in the Tailwind colors tool

#270D42 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)#001B440.068
Deuteranopia (no green cones)#001B410.069
Tritanopia (no blue cones)#211A260.070
Achromatopsia (no color)#1B1B1B0.095

Harmonies

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

Complementary

The opposite hue (180°).

  • #270D42

    #270D42

    oklch(23.5% 0.095 301.9)

  • #1A2200

    #1A2200

    oklch(23.6% 0.057 121.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #270D42

    #270D42

    oklch(23.5% 0.095 301.9)

  • #10164A

    #10164A

    oklch(23.5% 0.096 271.7)

  • #350531

    #350531

    oklch(23.4% 0.094 331.9)

Open the analogous palette in the generator

Split complementary

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

  • #270D42

    #270D42

    oklch(23.5% 0.095 301.9)

  • #261D00

    #261D00

    oklch(23.5% 0.048 92.4)

  • #00260E

    #00260E

    oklch(23.5% 0.062 151.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #270D42

    #270D42

    oklch(23.5% 0.095 301.9)

  • #301700

    #301700

    oklch(23.5% 0.054 61.4)

  • #00241F

    #00241F

    oklch(23.3% 0.042 181.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #270D42

    #270D42

    oklch(23.5% 0.095 301.9)

  • #3E0400

    #3E0400

    oklch(23.4% 0.089 31.8)

  • #1A2200

    #1A2200

    oklch(23.6% 0.057 121.7)

  • #002329

    #002329

    oklch(23.5% 0.041 211.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #270D42 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.