#38266F

Closest named color: Midnight Blue (#191970). oklch(33.5% 0.12 289.7), rgb(56, 38, 111).

Aa

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

About this color

#38266F is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.120 and its hue 290°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.065 away. White text reads best on it, at 12.53:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.120)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.67:1
White text12.53:1

Values

HEX#38266F
RGBrgb(56, 38, 111)
HSLhsl(255, 49%, 29%)
OKLCHoklch(33.5% 0.12 289.7)

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 #38266F 12.53:1 AAA Lc -101.5 Preferred for body text
Black text on #38266F 1.67:1 Fails Lc 0.0 Not readable
#38266F text on white 12.53:1 AAA Lc 98.1 Preferred for body text
#38266F text on black 1.67: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 900.

  1. Step 50

    50

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #E9E7FB

    oklch(93.5% 0.027 290.5)

  3. Step 200

    200

    #D8D4F9

    oklch(88.5% 0.051 290.3)

  4. Step 300

    300

    #BFB7F8

    oklch(80.9% 0.091 289.8)

  5. Step 400

    400

    #A08FF4

    oklch(70.7% 0.145 289.9)

  6. Step 500

    500

    #8A70EF

    oklch(63.1% 0.183 289.5)

  7. Step 600

    600

    #7654DE

    oklch(55.7% 0.2 289.6)

  8. Step 700

    700

    #6343C1

    oklch(49.1% 0.187 289.4)

  9. Step 800

    800

    #51389C

    oklch(42.7% 0.155 289.7)

  10. Step 900

    900 (this color)

    #38266F

    oklch(33.5% 0.12 289.7)

  11. Step 950

    950

    #271E48

    oklch(27% 0.075 290.3)

Export this scale for Tailwind in the Tailwind colors tool

#38266F 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)#0035710.068
Deuteranopia (no green cones)#00326D0.068
Tritanopia (no blue cones)#2637460.098
Achromatopsia (no color)#3434340.121

Harmonies

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

Complementary

The opposite hue (180°).

  • #38266F

    #38266F

    oklch(33.5% 0.12 289.7)

  • #393900

    #393900

    oklch(33.4% 0.073 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #38266F

    #38266F

    oklch(33.5% 0.12 289.7)

  • #083273

    #083273

    oklch(33.4% 0.121 259.7)

  • #501B5C

    #501B5C

    oklch(33.5% 0.12 319.7)

Open the analogous palette in the generator

Split complementary

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

  • #38266F

    #38266F

    oklch(33.5% 0.12 289.7)

  • #493200

    #493200

    oklch(33.5% 0.069 80.5)

  • #104300

    #104300

    oklch(33.6% 0.107 139.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #38266F

    #38266F

    oklch(33.5% 0.12 289.7)

  • #592500

    #592500

    oklch(33.4% 0.089 49.5)

  • #004131

    #004131

    oklch(33.4% 0.066 170)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #38266F

    #38266F

    oklch(33.5% 0.12 289.7)

  • #670E1B

    #670E1B

    oklch(33.5% 0.121 19.8)

  • #393900

    #393900

    oklch(33.4% 0.073 109.8)

  • #003F42

    #003F42

    oklch(33.4% 0.057 200.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #38266F 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.