#02041D

Closest named color: Midnight (#03012D). oklch(12.8% 0.057 269.3), rgb(2, 4, 29).

Aa

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

About this color

#02041D is a very dark, muted blue. In OKLCH its lightness is 13%, its chroma 0.057 and its hue 269°. 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 20.23:1.

Hue familyBlues
Lightnessvery dark (13%)
Chromamuted (0.057)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.03:1
White text20.23:1

Values

HEX#02041D
RGBrgb(2, 4, 29)
HSLhsl(236, 87%, 6%)
OKLCHoklch(12.8% 0.057 269.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 #02041D 20.23:1 AAA Lc -107.7 Preferred for body text
Black text on #02041D 1.03:1 Fails Lc 0.0 Not readable
#02041D text on white 20.23:1 AAA Lc 105.8 Preferred for body text
#02041D text on black 1.03: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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CFD9F3

    oklch(88.6% 0.037 268.9)

  4. Step 300

    300

    #AFBFED

    oklch(80.8% 0.068 269.9)

  5. Step 400

    400

    #869DE4

    oklch(70.7% 0.108 269.8)

  6. Step 500

    500

    #6883DC

    oklch(63% 0.138 269.4)

  7. Step 600

    600

    #516BCA

    oklch(55.6% 0.15 269.5)

  8. Step 700

    700

    #4259AF

    oklch(49.2% 0.139 269.5)

  9. Step 800

    800

    #36498D

    oklch(42.7% 0.115 269.3)

  10. Step 900

    900

    #2F3E71

    oklch(37.8% 0.089 269.4)

  11. Step 950

    950 (this color)

    #02041D

    oklch(12.8% 0.057 269.3)

Export this scale for Tailwind in the Tailwind colors tool

#02041D 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)#00071E0.014
Deuteranopia (no green cones)#00051D0.008
Tritanopia (no blue cones)#000A0E0.047
Achromatopsia (no color)#0606060.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #02041D

    #02041D

    oklch(12.8% 0.057 269.3)

  • #0B0600

    #0B0600

    oklch(12.7% 0.026 85.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #02041D

    #02041D

    oklch(12.8% 0.057 269.3)

  • #000811

    #000811

    oklch(12.8% 0.029 239.4)

  • #0B021A

    #0B021A

    oklch(13% 0.056 299.3)

Open the analogous palette in the generator

Split complementary

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

  • #02041D

    #02041D

    oklch(12.8% 0.057 269.3)

  • #0F0400

    #0F0400

    oklch(12.6% 0.03 57.4)

  • #060800

    #060800

    oklch(12.7% 0.03 118.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #02041D

    #02041D

    oklch(12.8% 0.057 269.3)

  • #170000

    #170000

    oklch(12.8% 0.053 29.2)

  • #000A02

    #000A02

    oklch(12.7% 0.034 150.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #02041D

    #02041D

    oklch(12.8% 0.057 269.3)

  • #150006

    #150006

    oklch(12.7% 0.051 0.2)

  • #0B0600

    #0B0600

    oklch(12.7% 0.026 85.9)

  • #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 #02041D, closest first.

Similar named colors

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

Use #02041D 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.