#02000C

Closest named color: Midnight (#03012D). oklch(7.9% 0.045 289), rgb(2, 0, 12).

Aa

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

About this color

#02000C is a very dark, muted purple. In OKLCH its lightness is 8%, its chroma 0.045 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.078 away. White text reads best on it, at 20.83:1.

Hue familyPurples
Lightnessvery dark (8%)
Chromamuted (0.045)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.00:1
White text20.83:1

Values

HEX#02000C
RGBrgb(2, 0, 12)
HSLhsl(250, 100%, 2%)
OKLCHoklch(7.9% 0.045 289)

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 #02000C 20.83:1 AAA Lc -107.9 Preferred for body text
Black text on #02000C 1.00:1 Fails Lc 0.0 Not readable
#02000C text on white 20.83:1 AAA Lc 106.0 Preferred for body text
#02000C text on black 1.00: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

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #E9E8F4

    oklch(93.5% 0.016 289.9)

  3. Step 200

    200

    #D8D6EC

    oklch(88.4% 0.03 289.9)

  4. Step 300

    300

    #BFBCE2

    oklch(81% 0.053 288.8)

  5. Step 400

    400

    #9E98D3

    oklch(70.7% 0.086 288.7)

  6. Step 500

    500

    #887EC7

    oklch(63.2% 0.108 289.2)

  7. Step 600

    600

    #7266B4

    oklch(55.6% 0.119 289)

  8. Step 700

    700

    #60549B

    oklch(49.1% 0.111 289.4)

  9. Step 800

    800

    #4E457E

    oklch(42.7% 0.093 289.1)

  10. Step 900

    900

    #413B65

    oklch(37.8% 0.071 289.1)

  11. Step 950

    950 (this color)

    #02000C

    oklch(7.9% 0.045 289)

Export this scale for Tailwind in the Tailwind colors tool

#02000C 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)#00010D0.020
Deuteranopia (no green cones)#00010C0.020
Tritanopia (no blue cones)#0002040.038
Achromatopsia (no color)#0101010.047

Harmonies

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

Complementary

The opposite hue (180°).

  • #02000C

    #02000C

    oklch(7.9% 0.045 289)

  • #020200

    #020200

    oklch(8.2% 0.018 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #02000C

    #02000C

    oklch(7.9% 0.045 289)

  • #000108

    #000108

    oklch(7.5% 0.033 261.2)

  • #040006

    #040006

    oklch(7.8% 0.038 318.7)

Open the analogous palette in the generator

Split complementary

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

  • #02000C

    #02000C

    oklch(7.9% 0.045 289)

  • #030100

    #030100

    oklch(7.5% 0.017 66.2)

  • #000200

    #000200

    oklch(7.3% 0.025 142.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #02000C

    #02000C

    oklch(7.9% 0.045 289)

  • #040100

    #040100

    oklch(8% 0.019 56.9)

  • #000201

    #000201

    oklch(7.5% 0.016 165.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #02000C

    #02000C

    oklch(7.9% 0.045 289)

  • #070000

    #070000

    oklch(8.1% 0.033 29.2)

  • #020200

    #020200

    oklch(8.2% 0.018 109.8)

  • #000202

    #000202

    oklch(7.7% 0.013 194.8)

Open the square palette in the generator

Palettes and gradients that use #02000C

These curated palettes and gradients contain exactly #02000C. Open one to see the full color scheme around it.

Palettes

Similar named colors

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

Use #02000C 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.