#02051C

Closest named color: Midnight (#03012D). oklch(13.1% 0.052 267.9), rgb(2, 5, 28).

Aa

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

About this color

#02051C is a very dark, muted blue. In OKLCH its lightness is 13%, its chroma 0.052 and its hue 268°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.038 away. White text reads best on it, at 20.17:1.

Hue familyBlues
Lightnessvery dark (13%)
Chromamuted (0.052)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.04:1
White text20.17:1

Values

HEX#02051C
RGBrgb(2, 5, 28)
HSLhsl(233, 87%, 6%)
OKLCHoklch(13.1% 0.052 267.9)

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 #02051C 20.17:1 AAA Lc -107.7 Preferred for body text
Black text on #02051C 1.04:1 Fails Lc 0.0 Not readable
#02051C text on white 20.17:1 AAA Lc 105.8 Preferred for body text
#02051C text on black 1.04: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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5EAF6

    oklch(93.7% 0.017 267.8)

  3. Step 200

    200

    #CFD9F1

    oklch(88.5% 0.035 267.6)

  4. Step 300

    300

    #AFC0EA

    oklch(80.9% 0.062 267.7)

  5. Step 400

    400

    #869EDF

    oklch(70.6% 0.099 268.3)

  6. Step 500

    500

    #6885D6

    oklch(63.1% 0.127 267.8)

  7. Step 600

    600

    #516DC3

    oklch(55.6% 0.137 268.2)

  8. Step 700

    700

    #415BA9

    oklch(49.1% 0.128 267.7)

  9. Step 800

    800

    #364B89

    oklch(42.8% 0.106 267.7)

  10. Step 900

    900

    #2F3F6D

    oklch(37.8% 0.082 267.9)

  11. Step 950

    950 (this color)

    #02051C

    oklch(13.1% 0.052 267.9)

Export this scale for Tailwind in the Tailwind colors tool

#02051C 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)#00081D0.013
Deuteranopia (no green cones)#00061C0.008
Tritanopia (no blue cones)#000A0E0.042
Achromatopsia (no color)#0707070.052

Harmonies

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

Complementary

The opposite hue (180°).

  • #02051C

    #02051C

    oklch(13.1% 0.052 267.9)

  • #0C0700

    #0C0700

    oklch(13.2% 0.027 88.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #02051C

    #02051C

    oklch(13.1% 0.052 267.9)

  • #000911

    #000911

    oklch(13.2% 0.028 234.6)

  • #0A0319

    #0A0319

    oklch(13.2% 0.051 296.6)

Open the analogous palette in the generator

Split complementary

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

  • #02051C

    #02051C

    oklch(13.1% 0.052 267.9)

  • #100500

    #100500

    oklch(13.2% 0.03 61.7)

  • #070900

    #070900

    oklch(13.2% 0.031 117.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #02051C

    #02051C

    oklch(13.1% 0.052 267.9)

  • #170000

    #170000

    oklch(12.8% 0.053 29.2)

  • #000B02

    #000B02

    oklch(13.1% 0.036 149.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #02051C

    #02051C

    oklch(13.1% 0.052 267.9)

  • #160007

    #160007

    oklch(13% 0.053 358.5)

  • #0C0700

    #0C0700

    oklch(13.2% 0.027 88.5)

  • #000A07

    #000A07

    oklch(12.9% 0.024 176.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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