#0F082A

Closest named color: Midnight (#03012D). oklch(17.1% 0.066 286.8), rgb(15, 8, 42).

Aa

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

About this color

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

Hue familyPurples
Lightnessvery dark (17%)
Chromamuted (0.066)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.08:1
White text19.29:1

Values

HEX#0F082A
RGBrgb(15, 8, 42)
HSLhsl(252, 68%, 10%)
OKLCHoklch(17.1% 0.066 286.8)

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

    #F5F5FC

    oklch(97.2% 0.009 286.2)

  2. Step 100

    100

    #E8E8F9

    oklch(93.6% 0.023 286)

  3. Step 200

    200

    #D6D5F5

    oklch(88.4% 0.044 286.9)

  4. Step 300

    300

    #BCBAF1

    oklch(80.9% 0.077 286.2)

  5. Step 400

    400

    #9B94EA

    oklch(70.7% 0.124 286.5)

  6. Step 500

    500

    #8577E4

    oklch(63.2% 0.159 286.8)

  7. Step 600

    600

    #705DD2

    oklch(55.7% 0.173 286.8)

  8. Step 700

    700

    #5E4BB5

    oklch(49% 0.161 287.1)

  9. Step 800

    800

    #4C3F93

    oklch(42.8% 0.133 286.4)

  10. Step 900

    900

    #3F3675

    oklch(37.7% 0.104 286.8)

  11. Step 950

    950 (this color)

    #0F082A

    oklch(17.1% 0.066 286.8)

Export this scale for Tailwind in the Tailwind colors tool

#0F082A 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)#000F2B0.033
Deuteranopia (no green cones)#000D290.032
Tritanopia (no blue cones)#0610170.054
Achromatopsia (no color)#0E0E0E0.066

Harmonies

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

Complementary

The opposite hue (180°).

  • #0F082A

    #0F082A

    oklch(17.1% 0.066 286.8)

  • #121000

    #121000

    oklch(17% 0.036 104.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0F082A

    #0F082A

    oklch(17.1% 0.066 286.8)

  • #000E29

    #000E29

    oklch(17% 0.061 257.2)

  • #1A0422

    #1A0422

    oklch(17% 0.066 316.2)

Open the analogous palette in the generator

Split complementary

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

  • #0F082A

    #0F082A

    oklch(17.1% 0.066 286.8)

  • #180D00

    #180D00

    oklch(17% 0.036 77)

  • #041400

    #041400

    oklch(16.9% 0.052 137.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0F082A

    #0F082A

    oklch(17.1% 0.066 286.8)

  • #1F0700

    #1F0700

    oklch(16.9% 0.047 46)

  • #00140C

    #00140C

    oklch(17% 0.035 166.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0F082A

    #0F082A

    oklch(17.1% 0.066 286.8)

  • #250105

    #250105

    oklch(17% 0.065 18.1)

  • #121000

    #121000

    oklch(17% 0.036 104.4)

  • #001314

    #001314

    oklch(17% 0.029 198.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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