#020821

Closest named color: Midnight (#03012D). oklch(14.7% 0.055 264.6), rgb(2, 8, 33).

Aa

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

About this color

#020821 is a very dark, muted blue. In OKLCH its lightness is 15%, its chroma 0.055 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.034 away. White text reads best on it, at 19.82:1.

Hue familyBlues
Lightnessvery dark (15%)
Chromamuted (0.055)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.05:1
White text19.82:1

Values

HEX#020821
RGBrgb(2, 8, 33)
HSLhsl(228, 89%, 7%)
OKLCHoklch(14.7% 0.055 264.6)

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 #020821 19.82:1 AAA Lc -107.6 Preferred for body text
Black text on #020821 1.05:1 Fails Lc 0.0 Not readable
#020821 text on white 19.82:1 AAA Lc 105.7 Preferred for body text
#020821 text on black 1.05: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

    #F2F5FC

    oklch(97% 0.01 267.4)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CDD9F2

    oklch(88.4% 0.037 265.1)

  4. Step 300

    300

    #ACC1EC

    oklch(81% 0.065 264.5)

  5. Step 400

    400

    #809FE2

    oklch(70.6% 0.105 264.8)

  6. Step 500

    500

    #6186DA

    oklch(63.1% 0.134 264.9)

  7. Step 600

    600

    #486EC7

    oklch(55.5% 0.145 264.7)

  8. Step 700

    700

    #395CAC

    oklch(49.1% 0.134 264.3)

  9. Step 800

    800

    #304B8B

    oklch(42.6% 0.111 264.9)

  10. Step 900

    900

    #2A3F6F

    oklch(37.6% 0.087 264.8)

  11. Step 950

    950 (this color)

    #020821

    oklch(14.7% 0.055 264.6)

Export this scale for Tailwind in the Tailwind colors tool

#020821 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)#000B220.011
Deuteranopia (no green cones)#0008210.006
Tritanopia (no blue cones)#000E130.042
Achromatopsia (no color)#0A0A0A0.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #020821

    #020821

    oklch(14.7% 0.055 264.6)

  • #100900

    #100900

    oklch(14.6% 0.03 84.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #020821

    #020821

    oklch(14.7% 0.055 264.6)

  • #000C15

    #000C15

    oklch(14.6% 0.031 234.4)

  • #0D051F

    #0D051F

    oklch(14.9% 0.055 294.1)

Open the analogous palette in the generator

Split complementary

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

  • #020821

    #020821

    oklch(14.7% 0.055 264.6)

  • #160600

    #160600

    oklch(14.7% 0.037 54.3)

  • #0A0C00

    #0A0C00

    oklch(14.7% 0.033 115.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #020821

    #020821

    oklch(14.7% 0.055 264.6)

  • #1C0102

    #1C0102

    oklch(14.6% 0.054 23.3)

  • #000F01

    #000F01

    oklch(14.6% 0.046 144.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #020821

    #020821

    oklch(14.7% 0.055 264.6)

  • #1A010C

    #1A010C

    oklch(14.6% 0.055 353.7)

  • #100900

    #100900

    oklch(14.6% 0.03 84.6)

  • #000E0A

    #000E0A

    oklch(14.6% 0.027 176.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #020821 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.