#230E40

Closest named color: Midnight Purple (#280137). oklch(22.9% 0.09 298.2), rgb(35, 14, 64).

Aa

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

About this color

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

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

Values

HEX#230E40
RGBrgb(35, 14, 64)
HSLhsl(265, 64%, 15%)
OKLCHoklch(22.9% 0.09 298.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 #230E40 17.37:1 AAA Lc -106.3 Preferred for body text
Black text on #230E40 1.20:1 Fails Lc 0.0 Not readable
#230E40 text on white 17.37:1 AAA Lc 103.9 Preferred for body text
#230E40 text on black 1.20: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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #ECE6FC

    oklch(93.6% 0.03 298.3)

  3. Step 200

    200

    #DDD1FC

    oklch(88.4% 0.06 297.9)

  4. Step 300

    300

    #C9B2FD

    oklch(81% 0.107 298.1)

  5. Step 400

    400

    #AF85FB

    oklch(70.6% 0.17 298.4)

  6. Step 500

    500

    #9D60F8

    oklch(63% 0.217 298.4)

  7. Step 600

    600

    #893FE7

    oklch(55.5% 0.236 298.3)

  8. Step 700

    700

    #742FC9

    oklch(49% 0.219 298)

  9. Step 800

    800

    #5F29A3

    oklch(42.7% 0.183 298.4)

  10. Step 900

    900

    #4D2881

    oklch(37.7% 0.142 298.3)

  11. Step 950

    950 (this color)

    #230E40

    oklch(22.9% 0.09 298.2)

Export this scale for Tailwind in the Tailwind colors tool

#230E40 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)#001A410.060
Deuteranopia (no green cones)#001A3F0.061
Tritanopia (no blue cones)#1C1A250.069
Achromatopsia (no color)#1A1A1A0.090

Harmonies

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

Complementary

The opposite hue (180°).

  • #230E40

    #230E40

    oklch(22.9% 0.09 298.2)

  • #1A2000

    #1A2000

    oklch(22.9% 0.054 119.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #230E40

    #230E40

    oklch(22.9% 0.09 298.2)

  • #0B1746

    #0B1746

    oklch(23% 0.09 267.6)

  • #310631

    #310631

    oklch(22.8% 0.09 328)

Open the analogous palette in the generator

Split complementary

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

  • #230E40

    #230E40

    oklch(22.9% 0.09 298.2)

  • #261B00

    #261B00

    oklch(22.9% 0.047 87.6)

  • #002409

    #002409

    oklch(22.7% 0.065 148.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #230E40

    #230E40

    oklch(22.9% 0.09 298.2)

  • #2F1500

    #2F1500

    oklch(22.9% 0.055 58.5)

  • #00231D

    #00231D

    oklch(22.9% 0.042 178.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #230E40

    #230E40

    oklch(22.9% 0.09 298.2)

  • #3D0202

    #3D0202

    oklch(22.9% 0.09 28.2)

  • #1A2000

    #1A2000

    oklch(22.9% 0.054 119.3)

  • #002226

    #002226

    oklch(23% 0.039 206.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #230E40 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.