#230C3F

Closest named color: Midnight Purple (#280137). oklch(22.5% 0.091 299.5), rgb(35, 12, 63).

Aa

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

About this color

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

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

Values

HEX#230C3F
RGBrgb(35, 12, 63)
HSLhsl(267, 68%, 15%)
OKLCHoklch(22.5% 0.091 299.5)

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 #230C3F 17.56:1 AAA Lc -106.4 Preferred for body text
Black text on #230C3F 1.19:1 Fails Lc 0.0 Not readable
#230C3F text on white 17.56:1 AAA Lc 104.0 Preferred for body text
#230C3F text on black 1.19: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

    #ECE6FC

    oklch(93.6% 0.03 298.3)

  3. Step 200

    200

    #DED1FC

    oklch(88.5% 0.06 299)

  4. Step 300

    300

    #CBB1FD

    oklch(81% 0.109 299.7)

  5. Step 400

    400

    #B184FC

    oklch(70.7% 0.173 299.2)

  6. Step 500

    500

    #A05EF9

    oklch(63.1% 0.222 299.6)

  7. Step 600

    600

    #8C3CE8

    oklch(55.6% 0.241 299.5)

  8. Step 700

    700

    #772BC9

    oklch(49% 0.224 299.6)

  9. Step 800

    800

    #6127A3

    oklch(42.8% 0.185 299.6)

  10. Step 900

    900

    #4F2781

    oklch(37.7% 0.144 299.9)

  11. Step 950

    950 (this color)

    #230C3F

    oklch(22.5% 0.091 299.5)

Export this scale for Tailwind in the Tailwind colors tool

#230C3F 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)#0019400.062
Deuteranopia (no green cones)#00193E0.063
Tritanopia (no blue cones)#1C19240.070
Achromatopsia (no color)#1919190.092

Harmonies

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

Complementary

The opposite hue (180°).

  • #230C3F

    #230C3F

    oklch(22.5% 0.091 299.5)

  • #191F00

    #191F00

    oklch(22.5% 0.053 119.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #230C3F

    #230C3F

    oklch(22.5% 0.091 299.5)

  • #0C1545

    #0C1545

    oklch(22.5% 0.091 269.4)

  • #310530

    #310530

    oklch(22.6% 0.091 329.1)

Open the analogous palette in the generator

Split complementary

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

  • #230C3F

    #230C3F

    oklch(22.5% 0.091 299.5)

  • #241A00

    #241A00

    oklch(22.4% 0.046 89.1)

  • #00230A

    #00230A

    oklch(22.4% 0.062 149.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #230C3F

    #230C3F

    oklch(22.5% 0.091 299.5)

  • #2D1400

    #2D1400

    oklch(22.4% 0.053 58.8)

  • #00221C

    #00221C

    oklch(22.6% 0.041 178.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #230C3F

    #230C3F

    oklch(22.5% 0.091 299.5)

  • #3C0000

    #3C0000

    oklch(22.4% 0.092 29.2)

  • #191F00

    #191F00

    oklch(22.5% 0.053 119.5)

  • #002025

    #002025

    oklch(22.3% 0.039 209.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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