#0C0B27

Closest named color: Midnight (#03012D). oklch(17.1% 0.056 280.3), rgb(12, 11, 39).

Aa

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

About this color

#0C0B27 is a very dark, muted purple. In OKLCH its lightness is 17%, its chroma 0.056 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.045 away. White text reads best on it, at 19.21:1.

Hue familyPurples
Lightnessvery dark (17%)
Chromamuted (0.056)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.09:1
White text19.21:1

Values

HEX#0C0B27
RGBrgb(12, 11, 39)
HSLhsl(242, 56%, 10%)
OKLCHoklch(17.1% 0.056 280.3)

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 #0C0B27 19.21:1 AAA Lc -107.4 Preferred for body text
Black text on #0C0B27 1.09:1 Fails Lc 0.0 Not readable
#0C0B27 text on white 19.21:1 AAA Lc 105.4 Preferred for body text
#0C0B27 text on black 1.09: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

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E7E9F7

    oklch(93.7% 0.019 279.5)

  3. Step 200

    200

    #D4D7F2

    oklch(88.5% 0.037 280.6)

  4. Step 300

    300

    #B8BDEB

    oklch(81% 0.065 280)

  5. Step 400

    400

    #9499E1

    oklch(70.7% 0.105 280.3)

  6. Step 500

    500

    #7B7ED9

    oklch(63.1% 0.135 280.3)

  7. Step 600

    600

    #6565C6

    oklch(55.5% 0.147 280.5)

  8. Step 700

    700

    #5454AB

    oklch(49.1% 0.136 280.2)

  9. Step 800

    800

    #45458B

    oklch(42.7% 0.113 280.5)

  10. Step 900

    900

    #393B6F

    oklch(37.8% 0.088 279.7)

  11. Step 950

    950 (this color)

    #0C0B27

    oklch(17.1% 0.056 280.3)

Export this scale for Tailwind in the Tailwind colors tool

#0C0B27 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)#0010280.025
Deuteranopia (no green cones)#000E260.024
Tritanopia (no blue cones)#0211170.047
Achromatopsia (no color)#0F0F0F0.056

Harmonies

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

Complementary

The opposite hue (180°).

  • #0C0B27

    #0C0B27

    oklch(17.1% 0.056 280.3)

  • #131000

    #131000

    oklch(17.1% 0.036 101.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0C0B27

    #0C0B27

    oklch(17.1% 0.056 280.3)

  • #001024

    #001024

    oklch(17.1% 0.049 250.7)

  • #170721

    #170721

    oklch(17.1% 0.055 310.4)

Open the analogous palette in the generator

Split complementary

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

  • #0C0B27

    #0C0B27

    oklch(17.1% 0.056 280.3)

  • #1A0C00

    #1A0C00

    oklch(17.1% 0.037 68.6)

  • #091300

    #091300

    oklch(17% 0.045 129.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0C0B27

    #0C0B27

    oklch(17.1% 0.056 280.3)

  • #220500

    #220500

    oklch(17.1% 0.054 39.2)

  • #00150A

    #00150A

    oklch(17.3% 0.039 160.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0C0B27

    #0C0B27

    oklch(17.1% 0.056 280.3)

  • #22030A

    #22030A

    oklch(16.9% 0.056 9.1)

  • #131000

    #131000

    oklch(17.1% 0.036 101.6)

  • #001413

    #001413

    oklch(17.3% 0.03 190.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #0C0B27 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.